Computer Science, asked by sajjadcsegub, 5 months ago

Write a Java Program to calculate the reached time of a bus and a truck. Step-1: Create two interfaces Bus and Truck. Bus interface has two attributes distance and speed1 and a method defined time1(). Truck interface has an attribute time2 and a method defined time2(). Step-2: Now create a ‘Result’ class implements from both interface Bus and Truck. The ‘Result’ class contains the methods time1() and time2() for the printing time of bus and truck.

Answers

Answered by AyaanViar33
0

Answer:

please mark the answer as brainliest

Similar questions