Object Oriented Programming With Visual Basic.NET
2.1 – Write the definition of a class that represents aCar. Include the definition of these properties: VIN Number,GasLevel, Mileage, and MPG (Miles Per Gallon). Make sure to chooseproper data types based on how these properties are used. Forexample, VIN Number, even though a number, but does not need to bedefined as Integer.
2.2 – Having done the code for the above question, writethe code for a Drive method, which accepts a value that representsthe number of miles driven. Drive will update the Mileage property,and reduce the GasLevel based on the MPG and the miles driven.
PayPal Gateway not configured
PayPal Gateway not configured