Q&A Discussões
#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 Voto
1 RespostaTo bind two things of similar origin but separate identities together as one unit with ability to function independently as long and the unit is not corrupted. How to set x to get y and become z permanently and protect the unit from corrupt or deviation or denying or hiding while z securely functions actively is the purpose.
0 Voto
1 RespostaQuente hoje
Need a personal tutor
1 Votes
Fix code
0 Votes
..
1 Votes
Software to write and run codes
1 Votes
Fast coding (mobile)
1 Votes
Add lua
0 Votes
Beginner_to_SoloLearn
1 Votes