Answer both parts a and b a) Create a Trip class in OOP which has three attributes ID, Destination, and TripLength and o

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Answer both parts a and b a) Create a Trip class in OOP which has three attributes ID, Destination, and TripLength and o

Post by answerhappygod »

Answer both parts a and b
a) Create a Trip class in OOP which has three attributes ID,Destination, and TripLength and one method called Summary to showthe values of Destination and TripLength (4 marks, 0.5 for eachblank)
b) Create a constructor for the Trip class which accepts threeparameters to initialize the three attributes: ID, Destination, andTripLength (4 marks)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply