answersLogoWhite

0

First you would have to design the class hierarchy; perhaps on paper and pencil. Then you create the classes so that one depends on another, using the extends keyword.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Who create Java and when?

Who create Java & when? Why he create java ? What are mane functions of it?


What is the hierarchy of the java program?

define the data types


What class begins java class hierarchy?

Class


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.


Why you need java?

Multi-Platform Applications and Applets.


Can you create a constructor for an interface in java?

NO, we cannot create a contructor for an interface in java.


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.


How do you create setup of core java project?

how to create setup file in core java


What is the Object class parent?

Object is the topmost class in the Java Class hierarchy. There is no Class above Object. All classes in Java are implicitly derived from Object.


What is the best compiler can be used to create Java programs?

A Java compiler.


What is hierarchy in java?

The top level class in Java is class Object. Every other class inherits from Object and therefore Object is the top most in the class hierarchy. If you extend a class from Object such as class Animal and further extend Animal with class Dog then the hierarchy is as follows: Object | Animal | Dog Code for this hierachy is as follows: class Animal { } class Dog extends Animal { } We don't need to write class Animal extends Object because every class extends from Object so it does not need to be stated.


About multi threading in Java?

multi threading is used ,when we use no.of threads at one time the system will not support to run the multi threads ,in that case multi threading is used to solve the problem occured in threading multi tasking.