Sesiones de PyR
#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 Votos
1 RespuestaEn tendencia hoy
Best language?
0 Votes
Bro can you fix yt error?
0 Votes
Need suggestions
0 Votes
Java full stack
0 Votes
Best code for creating games?
0 Votes
Duration of heart refilling
0 Votes
Calculator
0 Votes