//-------------------------------------------------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;