Q&A Discussies
Create obj with loop
0 Stemmen
1 AntwoordHow to stop obj getting created
0 Stemmen
4 AntwoordenWe can save object into file
2 Stemmen
1 Antwoord#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 Stemmen
1 AntwoordPopulair vandaag
Help
1 Votes
Python stressed me out
1 Votes
Course Doubt
1 Votes
Data analysis
0 Votes
How do i make a lexer and parser
1 Votes