Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урокОбсуждения
#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 голосов
1 ответАктуальное сегодня
Beginner
2 Votes
Can't fill gaps after app update
2 Votes
which line would you use irl?
1 Votes
Please help 🙏🏻
0 Votes
what is the mentor tag?
0 Votes
Ceasor Cypher 👀
1 Votes
There is a bug in the app
1 Votes