Tricky tricky scenario based java inheritance interview question[Very important for Interview]

preview_player
Показать описание
#kkjavatutorials #java

About this Video:
Hello Friends, In this video we will talk and learn one of the very important interview question We have 3 Classes A, B an C. Class C extends Class B and Class B extends Class A. Each class has an method add(), is there a way to call A's add() method from
Class C ?

Follow me on Social network:

KK JavaTutorials WebSite:

Subscribe KK JavaTutorails YouTube Channel:

Subscribe My Hindi Channel(KK HindiGyan):

Some Important Playlist link on KK JavaTutorials:

Spring Framework Tutorial:

Eclipse shortcuts :

Java 8 Features Tutorial(All In One):

JDBC Tutorial in depth[Must Watch]

Java 8 Stream APIs:

WebLogic Server Tutorials:

Spring Boot Tutorial(All In One):

Hibernate Tutorials:

Java 5 new features Tutorials

Java 7 Features tutorials:

Java multithreading for beginners:

Java Collections framework Tutorials:

OOPs concepts in java Tutorials:
Рекомендации по теме
Комментарии
Автор

We can simply make object of class A in class C and call add of class A. No need to call B.

NishantChauhan
Автор

In class c add method i can instantiate A class object and can directly call add method of class A.
Class c add{
A a = new A();
a.add();
}

kamra.gaurav
Автор

Why touched to class B. Instead of this we create object of A inside C and call to add method of A.

gokulkadnar
Автор

Isn't this multi level inheritance

thogarishankar