Question: 1. Create a new console application project and name it Week03. 2. Add another project of type class library names packtLibrary into the same solution.
1. Create a new console application project and name it Week03.
2. Add another project of type class library names packtLibrary into the same solution.
3. Add the reference of this library in your console application.
4. In the packLibrary perform following a. Add new class named Vehicle. b. Add two properties string color and double UnitPrice c. Add constructor to initialize these properties. d. Add Method name displayInfo which will display all the properties of vehicle class. public void displayInfo()
5. In you console application. Perform following: a. Initialize two objects one using properties and other one using constructors. b. Display the information from both the objects.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
