Discussions Q&R
Create obj with loop
0 Vote
1 Réponse#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
Checking personal activity
0 Votes
Help
0 Votes
Where is the error
0 Votes
Use of global function in c
0 Votes
Which one is better?? And why??
1 Votes
Python
0 Votes
Full form of HTML
0 Votes
Tryna learn dunno where to start
0 Votes