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
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
write knight tour problem which is present in datastructure
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
Can we create object of abstract class?
hi all..i want to know oops concepts clearly can any1 explain??
What is difference between inheritance and polymorphism?
What is pure oop?
what are the realtime excercises in C++?
What is oops with example?
Can static class have constructor?
What does oop mean in snapchat?
Where You Can Use Interface in your Project
What is the point of oop?
What are the data types in oop?