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
can inline function declare in private part of class?
What is a null tree?
What are constructors in oop?
to find out the minimum of two integer number of two different classes using friend function
What is the difference between abstraction and polymorphism?
What is an interface in oop?
Where You Can Use Interface in your Project
What is the purpose of enum?
What is polymorphism explain its types?
Can static class have constructor?
What are the 3 pillars of oop?
What is multilevel inheritance explain with example?
What is a function in oop?
What is oops and why we use oops?
What is a class in oop?