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 does <> mean pseudocode?
What does it mean when someone says I oop?
What is class and example?
Why multiple inheritance is not allowed?
What are the benefits of oop?
What is the types of inheritance?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Can static class have constructor?
how to get the oracle certification? send me the answer
Can a varargs method be overloaded?
Which is better struts or spring?
What are oops functions?
What is class and object in oops?
What is this pointer in oop?