Answer Posted / nashiinformaticssolutions
• A function declared with = 0 in a base class, making it abstract. Example:
• virtual void display() = 0;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is @functionalinterface annotation mandatory to define a functional interface? What is the use of @functionalinterface annotation? Why do we need functional interfaces in java?
What is a pure virtual function?
What is a constructor in class?
What is the benefit of Composition over Inheritance?
How to define an abstract class?
What's the order of call of constructors in inheritiance?
State two differences between an object and a class.
Write a note on encapsulation?
What is the main difference between a class and an object?
Is is possible to define our own functional interface?
What is multiple inheritance? How java 8 supports multiple inheritance?
Can encapsulation be called as a security device?
What is the use of finalize method?
Do we require parameter for constructors?
What is bootstrap, extension and system class loader?