Q&A Discussions
#include <iostream>
using namespace std;
class A{
public:
void f1();
};
class B : public A{
public:
virtual void f1();
}
int main()
{
A * obj = new B;
obj.f1();
}
Ques: can we write virtual before an overridden function from the base class?? if yes which f1() should it call base class f1() or derived class f1()???
0 Votes
1 AnswerHot today
I need help
1 Votes
My hearts are disappering :(
0 Votes
a phone or a laptop
0 Votes
Pressure and tension
2 Votes
Where is code bit
0 Votes
Java IDE for building a game.
0 Votes