Answered step by step
Verified Expert Solution
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 ObjectOriented 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:
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 AddVehicleVehicle 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
Define the following derived classes: Car, Van, SUV
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started