Discussioni Q&A
Create obj with loop
0 Voti
1 Risposta#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 Voti
1 RispostaPopolare oggi
??
1 Votes
Ошибка в приложении Sololearn
1 Votes
Hello guys,
1 Votes
Help me
1 Votes
NEO V2.0
1 Votes
Programming
0 Votes
how do they use javascript
0 Votes