Discussions Q&R
#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 Vote
1 RéponseAujourd'hui en vedette
Ai generated practices
2 Votes
Solving coding challenges
1 Votes
Feedback on my portfolio
0 Votes
Yo this is madness
0 Votes
I am new
1 Votes
Advertising in Sololearn
0 Votes
How can i insert files?
1 Votes