public void Hangout(Friend obj) { obj.Anger(); obj.Friendly(); //obj.Quiet();//Error obj.Matured(); //obj.Professional();//Error }