Dyskusje Q&A
#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 głosów
1 OdpowiedźPopularne dzisiaj
is python better than JS
0 Votes
Most asked 3.0
1 Votes
Print("hello ,world!"[7:13][2])
0 Votes
How can i improve my code
1 Votes
time complexity
1 Votes
Python
0 Votes
How to Start Programming ?
0 Votes
Any Other Solution?
1 Votes