Implementing Inheritance Relationship

1.What is the difference between single and multiple inheritance?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

2.Suppose you are designing a software system for a company that sells different types of vehicles, including cars, trucks, and motorcycles. Each vehicle has a unique identification number, a make and model, a year of manufacture, and a price. Cars have additional properties such as the number of doors and the type of fuel they use, while trucks have properties such as their load capacity and the type of cargo they carry. Motorcycles have properties such as their engine displacement and the type of handlebars they have. Which of the following statements about using inheritance to design the class hierarchy for this system is true?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

3.Which of the following variables can be moved from Customer and Office Executive classes to Person class?
Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation

Explanation