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


Please Help Members By Posting Answers For Below Questions

can inline function declare in private part of class?

3994


What is a null tree?

867


What are constructors in oop?

809


to find out the minimum of two integer number of two different classes using friend function

1873


What is the difference between abstraction and polymorphism?

854


What is an interface in oop?

785


Where You Can Use Interface in your Project

1628


What is the purpose of enum?

781


What is polymorphism explain its types?

931


Can static class have constructor?

789


What are the 3 pillars of oop?

872


What is multilevel inheritance explain with example?

872


What is a function in oop?

830


What is oops and why we use oops?

793


What is a class in oop?

780