answersLogoWhite

0

There is no limit actually. But, it is preferable to keep the levels under 6-7 for ease of use and maintenance

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Engineering

How many class of Hierarchical Inheritance?

There are 2 main types of Hierarchical Inheritance - Single and Multi Level Class A extends Class B - Single Class A extends Class B which in turn extends Class C - Multi level. Actually there is no limit to the number of levels till which you can inherit classes in multi level inheritance. But it is preferable to keep it at around 3 or 4 for ease of maintenance and understanding.


What are the codes examples for multi level inheritance?

1. Single InheritanceA Scenario where one class is inheriting/extending the behavior of just one super class.Ex: public class Ferrari extends Car {…}2. Multilevel InheritanceA Scenario where one class is inheriting/extending the bahavior of another class which in turn is inheriting behavior from yet another class.Ex: public class Automobile {…}Public class Car extends Automobile {…}Public class Ferrari extends Car {…}This multilevel inheritance actually has no limitations on the number of levels it can go. So as far as java goes, it is limitless. But for maintenance and ease of use sakes it is better to keep the inheritance levels to a single digit number.


Why does Java support multilevel inheritance?

Because it is one of the most important and widely used inheritance concepts in Java. In multi level inheritance a class directly inherits features from one class and indirectly inherits features form other classes that are in the inheritance hierarchy.


Type of inheritance?

There are 2 Types of genetic Inheritance. 1. Polygenic inheritance, also known as quantitative or multi-factorial inheritance refers to inheritance of a phenotypic characteristic (trait) that is attributable to two or more genes and their interaction with the environment. Polygenic traits do not follow patterns of Mendelian inheritance (qualitative traits). Instead, their phenotypes typically vary along a continuous gradient depicted by a bell curve. Eye color and skin color are both polygenetic traits. 2. Monogenic inheritance is controlled by a single gene, as opposed to multigenic.


What is multilevel inheritance in C plus plus?

Multi-level inheritance involves at least 3 classes, a, b and c, such that a is derived from b, and b is derived from c. c is therefore the least-derived base class, b is an intermediate base class and a is the most-derived class.

Related Questions

How many class of Hierarchical Inheritance?

There are 2 main types of Hierarchical Inheritance - Single and Multi Level Class A extends Class B - Single Class A extends Class B which in turn extends Class C - Multi level. Actually there is no limit to the number of levels till which you can inherit classes in multi level inheritance. But it is preferable to keep it at around 3 or 4 for ease of maintenance and understanding.


What type of inheritance is supported by php?

PHP Supports Multi Level Inheritance


Can you give Practical example for multilevel Inheritance?

Grandfather-father-child relationship is an example for multi level inheritance..


Type of inheritances in c plus plus?

Single, multiple, multi-level, hierarchical and hybrid/virtual inheritance. Single inheritance applies when one class inherits from just one base class. Multiple inheritance applies when one class inherits from two or more base classes. Multi-level inheritance applies to a class that inherits from at least one base class that is itself derived from another base class. Hierarchical inheritance applies to a base class that is inherited by two or more separate derived classes. Hybrid inheritance combines multiple inheritance, multi-level inheritance and hierarchical inheritance. That is, where A is a common base class of derived classes B and C, and B and C are both base classes of derived class D. Hybrid inheritance is often used with virtual inheritance where B and C inherit from A virtually rather than directly. In these cases, the virtual base class is instantiated by the most-derived class in the hierarchy, D, and this instance is then shared by both B and C.


What is the Difference between multilevel and multiple inheritance?

Multiple Inheritance : we can inherit more than one class in the same class. Multi-Level Inheritance: where one class can inherit only one base class and the derived class can become base class of some other class.


What is multi level planning in India?

Multi-level Planning, as the name implies, is a form of planning where the whole plan is carried out in a multi-step or multi- level process. In India, the task of plan fomulation is basically carried out by the Central and State govenments. The various levels of Planning in India are:-CentralStateDistrictBlocksVillagesWith the Centre having a dominant role in Planning and the states practically dependent on Centre for financial and other resources, the Centre more or less, is at the helm of things. Nevertheless, the levels are grouped as:-First level - CentreSecond level - StatesLevels below States.


Does a basement count as a storey?

A 'storey' is a level so yes. Think multi-storey car parks that have levels below ground.


What is a list that contains several levels of items with each level displaying a different numeric alphabetic or bullet symbol?

A nested list is a list that contains several levels of items, with each level displaying a different numeric, alphabetic, or bullet symbol. The different levels of items are typically indented to show hierarchy and organization.


Does multi level have a neutral connotation?

Not necessarily. The term "multi-level" is neutral on its own, but it can carry negative connotations depending on the context, such as in "multi-level marketing" which is associated with pyramid schemes.


What are the codes examples for multi level inheritance?

1. Single InheritanceA Scenario where one class is inheriting/extending the behavior of just one super class.Ex: public class Ferrari extends Car {…}2. Multilevel InheritanceA Scenario where one class is inheriting/extending the bahavior of another class which in turn is inheriting behavior from yet another class.Ex: public class Automobile {…}Public class Car extends Automobile {…}Public class Ferrari extends Car {…}This multilevel inheritance actually has no limitations on the number of levels it can go. So as far as java goes, it is limitless. But for maintenance and ease of use sakes it is better to keep the inheritance levels to a single digit number.


In Mafia Wars where do you get multi-purpose truck?

Underboss Job Tier. Break into the Armory Job. Level 60 for tier+some levels to unlock job.


What is mlm networking?

Multi-level marketing is a business model that pays its customers to be distributes and there is a commission paid for several levels of distributors usually known as a down line.