Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

Cpp Programming Quiz 123 – What does the class definitions in following code represent?

Question: What does the class definitions in following code represent?

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