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
0
Answer:
please mark the answer as brainliest
Similar questions
Social Sciences,
2 months ago
Accountancy,
2 months ago
Science,
2 months ago
Math,
5 months ago
English,
10 months ago
Math,
10 months ago
Math,
10 months ago