摘要: 1、编写⼀个BankAccount类,假如deposit和withdraw⽅法,和⼀个只读的balance属性。 2、编写Person类,主构造器接受⼀个字符串,字符串形式为名字,空格,姓,如 new Person(“Fred Smith”)。提供只读属性firstName和lastName。 3、 阅读全文
posted @ 2019-01-25 15:57 夏日的向日葵 阅读(273) 评论(0) 推荐(0) 编辑