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 |
How do you define social class?
What is Iteration Hierarchy? What is what is Object behavioral concept?
What is an interface in oop?
what is the use of classes in c++;
What is the important feature of inheritance?
What makes a language oop?
When you define a integer it gets stored in which data structure?(Stack or a heap)
What are the benefits of polymorphism?
swapping program does not use third variable
What is constructor in oop?
Difference between vector and array
why we are declare the function in the abstract class even though we are declaring it in Derived class?