You have one base class virtual function how will call that
function from derived class?
Answers were Sorted based on User's Feedback
Answer / kalaivani
u can call the base class virtual fn,if it is declare as
public
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / narendra
class A
{
public:
virtual void fun()
{
cout<<"class A\n";
}
};
class B:public A
{
public:
virtual void fun()
{
cout<<"class B\n";
A::fun(); //calling base class virtual function.
}
};
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / mazher
class B:A
{
public override void A_Func()
{
base.A_Func();
}
}
Is This Answer Correct ? | 1 Yes | 2 No |
what is the use of mutable key word
What is a class?
32 Answers Infosys, TCS, Thylak,
What is the point of oop?
What is oop in simple words?
What is coupling in oops?
which feature are not hold visual basic of oop?
What does sksksk mean in text slang?
write a C++ program for booking using constructor and destructor.
write string class as your own class in java without using any built-in function
what is virtual function in c++
Explain virtual inheritance?
what is single inheritance?