Q&A Discussies
#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 Stemmen
1 AntwoordPopulair vandaag
Debugging issue?
0 Votes
Text editor
0 Votes
how to view only application
0 Votes
I’m really confused
0 Votes
Stream
1 Votes
What is Typecasting?
1 Votes
Subscription
0 Votes
I need advice
0 Votes
Scraping
0 Votes