class F { int age, height, weight;
F( ) {
System.out.println("인자없는 생성자"); }
F( int a, int h, int w )
{ age=a; height =h; weight=w;
System.out.println("인자 3개인 생성자");
System.out.println("인자 3개인 생성자"+ a+h+w ); }
void eat() { System.out.print("소식"); }
void sleep() { System.out.print("단잠"); }
}
public class ♡6 {
public static void main(String args[ ]) {
F aa = new F();
F bb= new F(29, 180, 78);
aa.eat( ); bb.sleep( ); } }