Un-Answered Questions { OOAD }

If a method definition has been specified in the base class and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?

524


Can we use static method definitions in interfaces?

557


Can a class implement two interfaces having default method with same name and signature?

584


What if we override the conflicting method in the class?

522


Can we override static methods? Why?

516


Can we access interface static method using interface references?

534


If a method definition has been specified in class , its base class , and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?

555


What is difference between encapsulation and abstraction?

574


Difference between encapsulation and data hiding ?

515


Difference between abstraction and implementation hiding ?

587


What are the features of encapsulation ?

563


Difference between composition and inheritance ?

555


Are constructors inherited? Can a subclass call the parent's class constructor? When?

575


Can we reduce the visibility of the inherited or overridden method ?

615


Does a class inherit the constructor of its super class?

520