Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions

Question

Appreciate why organizational managers prefer to remain union-free

Answered: 1 week ago

Question

=+ What skills and competencies will enable someone

Answered: 1 week ago

Question

=+to live and work wherever he or she wants?

Answered: 1 week ago

Question

=+How will this affect the recruiting process?

Answered: 1 week ago