Question: How many objects can be created from an abstract class?
[A]. Zero
[B]. One[C]. Two
[D]. As many as we want
[B]. One[C]. Two
[D]. As many as we want
Answer: Option A
Answer: Option A
Answer: Option B
class Bike
{
Engine objEng;
};
class Engine
{
float CC;
};
[A].kind of relationship
[B].has a relationship
[C].Inheritance
[D].Both A and B
Answer: Option B
class Birds {};
class Peacock : protected Birds {};
[A].[ez-toc] It will not compile because class body of Birds is not defined.
[B].It will not compile because class body of Peacock is not defined.
[C].It will not compile because a class cannot be protectedly inherited from other class.
[D].It will compile succesfully.
Answer: Option D
Answer: Option B
Answer: Option C
Answer: Option C
Answer: Option B
Answer: Option B
Answer: Option C