Explain persistence?
When will you use an interface and abstract class?
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?
What is @functionalinterface?
What are the access modifiers?
A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both car and bus interface?
Do we require a parameter for constructors?
What is the default access specifier in a class definition?
What is constructor and virtual function? Can we call virtual funciton in a constructor?
Why is message passing between the objects important?
Differentiate between an abstract class and an interface?
Can we override static methods of a class?
How do you prevent a class from being inherited by another class?
Describe inheritance and non-inheritance of a derived class?
What is the use of interface?