ComputerBook.java
上传用户:hensond
上传日期:2021-12-27
资源大小:817k
文件大小:1k
- package com.company.section5;
- /**
- * @author cbf4Life cbf4life@126.com
- * I'm glad to share my knowledge with you all.
- * 计算机书籍
- */
- public class ComputerBook implements IComputerBook {
- private String name;
- private String scope;
- private String author;
- private int price;
-
- public ComputerBook(String _name,int _price,String _author,String _scope){
- this.name=_name;
- this.price = _price;
- this.author = _author;
- this.scope = _scope;
- }
-
- public String getScope() {
- return this.scope;
- }
- public String getAuthor() {
- return this.author;
- }
- public String getName() {
- return this.name;
- }
-
- public int getPrice() {
- return this.price;
- }
- }