suhaskulkarni100
BAN USER
Comments (4)
Reputation 10
Page:
1
Comment hidden because of low score. Click to expand.
Comment hidden because of low score. Click to expand.
0
of 0 vote
It is not possible to swap. You will get run time failure like stack is corrupted.
- suhaskulkarni100 September 24, 2012Comment hidden because of low score. Click to expand.
1
of 1 vote
It's 2 times. If virtual is placed in front of D1 while deriving from Base, then it is 1. Because there will be no duplicates.
- suhaskulkarni100 September 24, 2012Comment hidden because of low score. Click to expand.
0
of 0 vote
So what is the size of the class if it is
Class A
{
Public:
A();
Virtual ~A();
char a;
Char b;
Int c;
}
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
moreover destructor is also a method, so making it pure virtual defeats the purpose of this question.
- suhaskulkarni100 September 24, 2012