Lesson04 - Exercises (PS11-12 Hoh Jungi)
Lesson04 - Exercises (PS11-12 Hoh Jungi)
Filename: Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lesson04Ex1
{
internal class Computer
{
private string strBrand;
private float fltPrice;
return fltPrice;
}
}
Console.ReadKey();
}
}
}
Lesson04Ex2
Filename: Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Lesson04Ex2
{
class Vehicle
{
private string strModel;
private float fltPrice;
return fltPrice;
}
}
Console.WriteLine("Price of {0} vehicle with CAT {1} COE = ${2}", v2Obj.Model, ca,
v2Obj.GetPrice(ca).ToString());
Console.ReadKey();
}
}
}