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 renewal class?
Conversion from a basic type to a class type may be achieved using______________
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
What are the features of oop?
What is virtual constructors/destructors?
what are three tenets of object orinted Systems?Why they call like that ? Please answer me. Advance thanks.
What is ambiguity in c++
Why do pointers exist?
What is multidimensional array?
Why do while loop is used?
what are the realtime excercises in C++?
Why is oop better than procedural?