Q&A Discussions
Create obj with loop
0 Votes
1 Answerswhat is wrong in my prog;
1 Votes
1 AnswersArray of objects in java
1 Votes
1 Answers#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 AnswersHot today
X=5;
Y=++X;
Print X; Print Y;
0 Votes
Python course update kinda sucks
0 Votes
Python
1 Votes