ch3p-DiningChair (a type of Chair, furniture)
AppParty ArmChair | KitchenChair |
DiningChair.cs
namespace party.house.rooms.furniture
{
class DiningChair : Chair // DiningChair is a type of Chair
{
public DiningChair(string name) : base(name) // call base constructor
{}
override public string ToString()
{
string message = base.ToString(); // name
message += " is comfortable";
return message;
}
}
}
AppParty ArmChair | BACK_TO_TOP | KitchenChair |
Comments
Post a Comment