Is A Relationship - rahul00773/JavaConcepts GitHub Wiki

If our class does not extend Any other class then only our class is a direct child class of Object.

class A{

}

/Class A is a child of Object

If our class extends another class then our class is an indirect child class of Object —

class A extends B{

}

Either Directly or Indirectly Java won’t provide support for multiple Inheritence with respect to classes

Cyclic Inheritance is not allowed in java. It is not required.

Ex.

Class A extends A{ }

Class A extends B{ }

Class B extends A{ }