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 |
Difference ways of Polymorphism?
Write a program to find out the number of palindromes in a sentence.
what is the 3 types of system development life cycle
What is polymorphism? Explain with an example.
Why multiple inheritance is not possible?
What is ambiguity in c++
What does and I oop and sksksk mean?
In which Scenario you will go for Interface or Abstract Class?
1 Answers InfoAxon Technologies,
What are the two different types of polymorphism?
What is polymorphism and types?
Can you name some types of inheritance?
What makes a language oop?