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 |
Can java compiler skips any statement during compilation time?
Is enum a class?
create a class complex having real and imaginary part of a complex no. as a data member. overload the binary operators(+,- and *) to perform the operations on complex no. objects. overload binary operator using friend function.
2 Answers CTS, Delhi University,
what is graphics
What does no cap mean?
How do you achieve polymorphism?
Can we create object of interface?
What is encapsulation in oops?
There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?
define oops with class and object
write a program to find 2^n+1 ?
Hi All, I am new to programming and want to know how can i write a code to take input of 2 numbers from user and swap it without using a temp variable?