Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урокОбсуждения
#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 ответАктуальное сегодня
What’s wrong with this???
2 Votes
What's wrong with these codes?
1 Votes
What can i do with bits
3 Votes
Arrays
0 Votes
Is it A Bug or A Feature?
0 Votes
Guys, it’s about streak
0 Votes
html
2 Votes
I don't get it
0 Votes