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
What is the difference between a constructor and a destructor?
What is overloading and its types?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is overriding vs overloading?
What are different oops concepts?
What is abstraction oop?
What is abstract class in oops?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is polymorphism what are the different types of polymorphism?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
write a program that takes input in digits and display the result in words from 1 to 1000
Can a varargs method be overloaded?
What is variable example?
to find out the minimum of two integer number of two different classes using friend function
Explain the concepts involved in Object Oriented programming.