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 fundamental idea of oop?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
What is the difference between pass by reference and pass by value?
Difference ways of Polymorphism?
Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)
What is an advantage of polymorphism?
what is object oriented programming and procedure oriented programming?
what are the ways in which a constructors can be called?
should we use linear search or binary search if elements are placed in random order or mixed?in both cases? i need a little bit detail ans?thnks
can inline function declare in private part of class?
What is command routing in MFC
What does no cap mean?