摘要:
1.为类或对象创建变量;2.使用对象和类的方法;3.调用方法并返回一个值;4.创建构造函数;5.给方法传递参数;6.使用this来引用对象;7.创建新对象。 程序VirusLab:测试Virus类的功能 1 package com.jsample; 2 3 public class VirusLab 阅读全文
posted @ 2018-03-20 20:26 夜逆尘 阅读(199) 评论(1) 推荐(0)
posted @ 2018-03-20 20:26 夜逆尘 阅读(199) 评论(1) 推荐(0)