New course! Every coder should learn Generative AI!
Try a free lessonQ&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
Comparing code coach solutions
3 Votes
Automatation python
1 Votes
General python
1 Votes
Coding
1 Votes
view challenge analytics
2 Votes
header only implementation
1 Votes
Problem with application
0 Votes
how to create a website
0 Votes
How and where to use html?
0 Votes
Generative AI
0 Votes