You have one base class virtual function how will call that
function from derived class?
Answer Posted / swetcha
class a
{
public virtual int m()
{
return 1;
}
}
class b:a
{
public int j()
{
return m();
}
}
Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
What are the two different types of polymorphism?
What are the 4 main oop principles?
What is multilevel inheritance explain with example?
Please send ford technologies placement paper 2 my mail id
Why it is called runtime polymorphism?
What is the main feature of oop?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Can we create object of abstract class?
What is the difference between a mixin and inheritance?
What is difference between polymorphism and inheritance?
What is the use of oops?
What is the problem with multiple inheritance?
#include
What is abstraction in oops with example?
What do you mean by Encapsulation?