answersLogoWhite

Top Answer
User Avatar
Wiki User
Answered 2009-04-25 08:21:57

Class hierarchy is a term used in Java. It is used for identifying the inheritance hierarchy or the parent class relationships Ex: Public class B extends C { } Public class A extends B { } Here if we take the class hierarchy for class 'A' it would be A

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

User Avatar
Wiki User
Answered 2009-04-25 08:21:57

Class hierarchy is a term used in Java. It is used for identifying the inheritance hierarchy or the parent class relationships Ex: Public class B extends C { } Public class A extends B { } Here if we take the class hierarchy for class 'A' it would be A à B à C

001
๐Ÿ™
0
๐Ÿคจ
0
๐Ÿ˜ฎ
0
๐Ÿ˜‚
0
User Avatar

Your Answer

Still Have Questions?

Related Questions

What are the four pillars of Object Oriented Programming?

1.Abstraction 2.Encapsulation 3.Modularity 4.Hierarchy


What are the differences between abstract class and interface?

Interface - to act like, to behave like, defines publicmethods/contracts. Maybe extended by different class hierarchies, in single inheritance or multiple inheritance.abstract class - IS_A, is/derived from [an abstraction], defines abstract methods (not necessary public) to force the derived classes to implement them. It also may provide data members and other methods to be inherited and overridable. Maybe extended by 1 class hierarchy (single inheritance) (Java, C#, VB.Net), or some in multiple inheritance (C++).


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.


What is the use of constructor inheritance in java?

The constructor will invoke all constructors in the inheritance hierarchy to ensure that all the parent classes of the current classes get initialized when the current class is instantiated.


Write a program using single inheritance in C plus plus?

Single inheritance simply means that every derived class within a class hierarchy has exactly one direct base class, and no class can be repeated in the hierarchy. With multiple inheritance, base classes can be repeated and are (usually) declared virtual base classes so there is only one instance rather than multiple instances.


What is the difference between class inheritance and interface inheritance?

interface inheritance is a misleading term. Interface inheritance would be equivalent to the union of the method signatures of interfaces ( no typo here, an interface may implment multiple other interfaces) Class inheritance - single hierarchy (in C#), and not only the methods are inherited, but also the data members. (interface in C# cannot define data members)


Why cell is the basic fundamental unit of life?

since the cell is the lowest level in the hierarchy of biological organization at which the properties of life emerge :))catziee


Inheritence and its types in object oriented programmings?

There are only two types of inheritance in object oriented programming: Single inheritance: where a class inherits directly from just one base class. Multiple inheritance: where a class inherits directly from two or more base classes. Multi-level inheritance is often thought of as being a separate type of inheritance, however inheritance relates to a derived class and those that it directly inherits from. If a base class is itself a derived class (an intermediate class), then its base class or classes are simply indirect base classes of the derivative. But in isolation, the intermediate class either uses single or multiple inheritance, even if its base class or classes are also intermediates. Virtual inheritance is also thought of as being a separate type, however virtual inheritance doesn't change the relationship between classes within the hierarchy. the only difference virtual inheritance makes is that the virtual base class or classes are constructed by the most-derived class within the current hierarchy, rather than by their most direct descendants. In this way, only one instance of each virtual base exists in the hierarchy, rather than multiple instance as would normally exist. The actual inheritance is still single or multiple, however.


Advantages of single inheritance?

Some advantages are: a. The child class comfortably extends all behavior from its parent class b. There is no confusion about who the parent class of this class in the inheritance hierarchy c. All public features of the parent are available at the child's disposal


Why super constructor should be first statement in subclass constructor in java?

Because, the parent class also needs to be initialized when you create an object in the inheritance hierarchy.


What is IPEndPoint?

Represents a network endpoint as an IP address and a port number.Inheritance HierarchySystem.ObjectSystem.Net.EndPointSystem.Net.IPEndPointNamespace: System.NetAssembly: System (in System.dll)


What is over abstraction?

Over abstraction, in computer programming terms, means that you use inheritance too often in your code. If you look for any two classes which share a common function and make an abstract class for them to inherit, then you are most likely guilty of over abstraction. This is a common problem found in programmers new to the world of object-oriented programming. Much of this is a Coding Style subjective answer, but overall, I think useful: A good rule of thumb is that you are over-abstracting your problem if a class hierarchy has more than about a half-dozen ancestors before it gets to a pre-defined type. That is, if your program subclasses a library object (or the base Object) more than about 6 times, you should really re-consider how you've laid out your inheritance tree. Additionally, very, very few inheritance trees should have more than one user-defined Abstract class per branch. Take a look a the Java Class Library tree - I can't name any class which has more than 4 subclass-ings from Object.


Is it possible to implement overriding in every inheritance?

Yes. It is possible to implement overriding in every inheritance level. If there are methods of the same name in multiple classes in the hierarchy the one that is closest to the current object gets invoked. The other methods can be specifically invoked using the super keyword.


How inheritance implemented in c?

Assume the question was for C#, not C.":" is syntax to extend a type. If the type extended from is another class, they form a class hierarchy and the "inheritance" is established:For example:class Base {}class Derived : Base {}Derived extends Base, and thus inherits from Base.


What is Buddhism's hierarchy?

There is no hierarchy.


How would you choose between two characterstics to be used for developing a hierarchy in classification?

For developing a hierarchy of classification, we choose the fundamental characteristic among several other characteristics. For example, plants differ from animals in the absence of locomotion, chloroplasts, cell wall, etc. But, only locomotion is considered as the basic or fundamental feature that is used to distinguish between plants and animals. This is because the absence of locomotion in plants gave rise to many structural changes such as the presence of a cell wall for protection, and the presence of chloroplast for photosynthesis (as they cannot move around in search of food like animals). Thus, all these features are a result of locomotion. Therefore, locomotion is considered to be a fundamental characteristic. By choosing the basic or fundamental characteristic, we can make broad divisions in living organisms as the next level of characteristic is dependent on these. This goes on to form a hierarchy of characteristics.


What is an Amish hierarchy called?

hierarchy


How do youy spell hierarchy?

Hierarchy


What is the hierarchy of Christianity?

the Hierarchy is God but in Judaism there is no hierarchy as they believe that there is noone higher than them.


In the PCOLS hierarchy there are two branches what are these two branches?

Acquisition hierarchy and Financial hierarchy


What is multilevel inheritance in java?

Multilevel inheritance is when there is a multiple father child hierarchy in your application. Ex: class A extends class B class B extends class C class C extends class D This means class A extends class D indirectly through classes B and C.


Hierarchy of a settlement?

what is ment by a hierarchy of a settlement


What is the noun form of hierarchy?

Hierarchy is a noun


What is multiple inheritance?

A class which inherits from more than one super-classes is said to implement multiple inheritance.For example, a simple class hierarchy might define a vehicle class. Decedents of the vehicle class could be car, ship and aeroplane classes. Another root-level class could be the class of landbound things. Using multiple inheritance, the car class might be derived from both vehicle and landbound things.


What is the hierarchy of quadrilaterals?

Its basically a hierarchy just for quadrilaterals.


Still have questions?