//-------------------------------------------------Class Manager //parent class abstract class Manager { ??? //Method:KickOut ?abstract public void KickOut(); };
//sonclass1:FemaleManager class FemaleManager:Manager { ?override public void KickOut() ?{ ??Console.WriteLine("Please Go Out!"); ?} }; //sonclass2:MaleManager class MaleManager:Manager { ?override public void KickOut() ?{ ??Console.WriteLine("Out!Shit!"); ?} }; //-------------------------------------------------Class Manager //-------------------------------------------------Class ChatRoom class ChatRoom { ?//manager to keep the room silent:FIEld ?private Manager chatroommanager;