Name: Mel Vincent Anonuevo SIN: 301167069 Date: Sept 14, 2021
Name: Mel Vincent Anonuevo SIN: 301167069 Date: Sept 14, 2021
/*
* Name: Mel Vincent Anonuevo
* SIN: 301167069
* Date: Sept 14, 2021
*/
namespace Week01_Lab_Cars
{
class Program
{
static void Main(string[] args)
{
TestCars();
}
static void TestCars()
{
}
class Cars
{
private int year;
private string manufacturer;
private string model;
private bool isDrivable;
private double price;
//Constructor
/*public Cars(int yr, string manu, string mdl, double prce, bool isDrivable =
true)
{
year = yr;
manufacturer = manu;
model = mdl;
price = prce;
}*/
public Cars(int year, string manufacturer, string model, double price, bool
isDriveable = true)
{
this.year = year;
this.manufacturer = manufacturer;
this.model = model;
this.price = price;
this.isDrivable = isDriveable;
}