diff between Virtual mathod and abstract method?
Answer / pawan kumar
Virtual methods have an implementation and provide the derived classes with the option of overriding it. Abstract methods do not provide an implementation and force the derived classes to override the method. So, abstract methods have no actual code in them, and subclasses HAVE TO override the method.
| Is This Answer Correct ? | 0 Yes | 0 No |
WHAT IS THE DIFFERENCE BETWEEN ABSTRUCTION AND ENCAPSULATION? PLEASE EXPLAIN IT.
There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?
how can we design a magic square in c++?or suggest me the basic idea of it.
What is ambiguity in inheritance?
What is polymorphism in oops with example?
how to create thread in java?
17 Answers IBM, Infosys, Wipro,
Write an operator overloading program to write S3+=S2.
Why is polymorphism needed?
Out of 4 concepts, which 3 C++ Follow?
What is the difference between a mixin and inheritance?
What is the expansion of OOPS?
What is namespace?