Discussões Q&A
Create obj with loop
0 Voto
1 Resposta#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 Voto
1 RespostaPopular hoje
Can i code here? Or just learn?
2 Votes
Why Lazy?
1 Votes
Quiz App: Step 3, Restart Button
0 Votes
Catch the ball
0 Votes
Running a python code
1 Votes
Web development
0 Votes
PHP
0 Votes
How to do a responsive page?
1 Votes