Question: 3. Suppose there are three interface called named Bus, Car, Truck. It will contain members such as length, weight, price etc. It will have methods

 3. Suppose there are three interface called named Bus, Car, Truck.

3. Suppose there are three interface called named Bus, Car, Truck. It will contain members such as length, weight, price etc. It will have methods such as accelerate(), brake() etc. There are a class called Vehicle. Now, Implement the interface and show how could we obtain multiple inheritance from above scenario

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!