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
Ошибка в приложении Sololearn
1 Votes
NEO V2.0
1 Votes
Sololearn course
1 Votes
Best language?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Sql practice
0 Votes