What is the difference between a virtual method and an abstract method?
Answer / Manju Rani
An abstract method is an incomplete method declared in a base class that must be implemented by its derived classes, while a virtual method can have an implementation in the base class but also allows derived classes to override it if necessary. Virtual methods are denoted by the 'virtual' keyword.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the use of ‘finalize’?
what are the different ways for a method to be overloaded?
Difference: Sequence Diagrams, Collaboration Diagrams ?
What is guard condition?
8 Answers Mannar Company, Syntel,
What is the use if instanceof keyword?
What is the purpose of late binding in object-oriented programming?
If there is a conflict between base class method definition and interface default method definition, which definition is picked?
Explain OOPS.
How many instances can be created for an abstract class?
Explain about abstraction?
How a program can be structured using the concept of object oriented programming?
Can we access interface static method using interface references?