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 object in oop?
What is multilevel inheritance explain with example?
Why is static class not inherited?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Why is destructor used?
What is polymorphism oop?
Can an interface inherit a class?
Is oop better than procedural?
Where You Can Use Interface in your Project
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Can abstract class have normal methods?
Write a program to reverse a string using recursive function?
What is difference between oop and pop?
What is abstract class in oop?
What is the types of inheritance?