Q&A Discussions
#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 Votes
1 AnswerHot today
How to make a game code
1 Votes
How to add image and audio
1 Votes
What is HelloWorld
1 Votes
About create tuples [Solved]
0 Votes
Headless CMS
1 Votes
Can anyone fix for me this code
1 Votes
Missing]
0 Votes
HTML
0 Votes
Website tips
0 Votes