You have one base class virtual function how will call that
function from derived class?
Answer Posted / swetcha
class a
{
public virtual int m()
{
return 1;
}
}
class b:a
{
public int j()
{
return m();
}
}
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What is difference between class and object with example?
What is inheritance in simple words?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
which feature are not hold visual basic of oop?
What is inheritance write a program to show use of inheritance?
How Do you Code Composition and Aggregation in C++ ?
What is polymorphism explain?
can we make game by using c
What is polymorphism in oops with example?
What is polymorphism what are the different types of polymorphism?
Give two or more real cenario of virtual function and vertual object
How is class defined?
How long to learn object oriented programming?
State what is encapsulation and friend function?
What is balance factor?