Question: LicenseType Class: Data members to store: 1 . type 2 . description Default constructor; initialize type and description to be: type = 4 , description

LicenseType Class:
Data members to store:
1. type 2. description
Default constructor; initialize type and description to be: type=4, description="Private passenger vehicle";
Constructor with parameters set type and description according to the parameters. post: type=t; description=d;
Function to set type and description according to the parameters. post: type=t; description=d;
Functions to return type and description data members. post: type; description;
Function to output type and description in the form: type description (e.g.,7Buses)
Note: Use the following guide table for license types and their descriptions:
1 w All types of motorcycles
2 w Construction vehicle
3 w Agricultural vehicle
4 w Private passenger vehicle
5 w Commercial passenger vehicle
6 w Minibus
7 w Buses
8 w Trailer and semi-trailer
9 w vehicle equipped for disabled

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!