ch3p-ArmChair (a type of Chair, furniture)

AppParty     Chair DiningChair







ArmChair.cs


namespace party.house.rooms.furniture
{
class ArmChair : Chair // ArmChair is a type of Chair
{
public ArmChair(string name) : base(name) // call base constructor
{}

override public string ToString()
{
string message = base.ToString(); // name
message += " is cozy";

return message;
}
}
}









AppParty     Chair BACK_TO_TOP DiningChair



Comments

Popular posts from this blog

Contents