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