首页 > 其他 > 详细

1.自定义图书类

时间:2016-01-18 09:10:46      阅读:154      评论:0      收藏:0      [点我收藏+]
package lianxiti;

public class Book {

    private String title;
    private String author;
    private double price;
    
    public Book(String title,String author,double price){
        
        this.title=title;
        
        this.author=author;
        
        this.price=price;
    }
    public String getTitle(){
        return title;
    }
    public String getAuthor(){
        return author;
    }
    public double getPrice(){
        return price;
        
    }
}

 

1.自定义图书类

原文:http://www.cnblogs.com/as1234as/p/5138279.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!