

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
this document will help student and teacher to prepare quiz of object oriented programming
Typology: Assignments
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Semester: VI Batch: 2018 Due Date: 29-Aug-2019 Max Marks: 10 Instructions: Attempt all questions Route
Class Order : Attribute : startingFrom, terminating, shuttleList, nbShuttles. Constructor : Route (startingFrom: String, terminating: String). Method : addShuttle() that adds a new shuttle to shuttleList. Maximum 10 shuttles can be added. getTotalNumofPassengers() that returns the total number of passenger traveling at that route. printRouteDetailst() prints the startingFrom, terminating and list of shuttles along with their driver names and number of passengers. Class Application: Write an application class and create Five (5) objects of Shuttle class and Two (2) object of Route class. Add first three shuttles to first route and last two shuttles to second route and and print the route details.
[1 Marks]