Answer Posted / achal
the concept of vitual function comes when inheritance is at
work. If the overriden function is not made virtual in base
class , then pointer of derived class will call the funtion
in base class(instead it should have called the one from
derived class.)
this is why we make the function in base as virtual.
| Is This Answer Correct ? | 37 Yes | 6 No |
Post New Answer View All Answers
Can you inherit a private class?
Can a varargs method be overloaded?
What is an example of genetic polymorphism?
What is the example of polymorphism?
What is class and object in oops?
What is polymorphism in oop example?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What is a null tree?
Why is oop useful?
What is difference between data abstraction and encapsulation?
What polymorphism means?
What is the important feature of inheritance?
What is the benefit of oop?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
Which is better struts or spring?