PettyGirl.java
上传用户:hensond
上传日期:2021-12-27
资源大小:817k
文件大小:1k
- package com.company.section2;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- * 美女的实现类
- */
- public class PettyGirl implements IGoodBodyGirl,IGreatTemperamentGirl {
- private String name;
- //美女都有名字
- public PettyGirl(String _name){
- this.name=_name;
- }
-
- //脸蛋漂亮
- public void goodLooking() {
- System.out.println(this.name + "---脸蛋很漂亮!");
- }
- //气质要好
- public void greatTemperament() {
- System.out.println(this.name + "---气质非常好!");
- }
-
- //身材要好
- public void niceFigure() {
- System.out.println(this.name + "---身材非常棒!");
- }
- }