Question: The principles and concepts of functions and Object - Oriented Programming provide the opportunity to increase the reusability and readability of the code. Many principles

The principles and concepts of functions and Object-Oriented Programming provide the opportunity to increase the reusability and readability of the code. Many principles work in OOP, for example, encapsulation, inheritance, and polymorphism.
For this second part of the assignment, you are tasked with demonstrating your understanding of methods and OOP by implementing the following application.
Create a console application in C# by using the principles of classes and methods to develop a simple Vehicle Fleet Management system.
Your application should provide users with the following options:
1) Define the following base class: Vehicle
The following fields should be added to your add: Make, Model, Year, Colour, SeatingCapacity, Fuel Type, InsuranceExpiryDate, FitnessExpiryDate
The following methods should be added to your vehicle class:
a) AddVehicle(Vehicle veh)- accepts a vehicle object as a parameter
b) Create an overload for the AddVehicle method that accepts a Collection of vehicles (hint: GenericList of Vehicle)
c) ViewInventory - This method should view all the vehicles that were added
2) Define the following derived classes: Car, Van, SUV
2) When creating the new objects derived classes should be used (eg Car, Van, SUV)
Exception handling should be a part of your application by design.
Your application should also make use of a collection of your preferences (List, ArrayList, etc)

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!