文件名称:A
-
所属分类:
- 标签属性:
- 上传时间:2015-10-27
-
文件大小:1.47kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
(1)编写一个Java应用程序
定义一个类,包含两个成员变量x和y,其中x为类变量,y为实例变量。
1)分别在类中定义获取和设置x与y的方法;(
2)创建一个测试类,在其主函数中构建第一个类的2个对象,分别通过第一个类中的设置方法,为2个对象的x和y赋值,最后输出2个对象的x和y变量值。
-(1) write a Java application
Define a class that contains two member variables x and y, where x is a class variable, y is the instance variables.
1) respectively get and set the x and y of the method defined in the class (
2) Create a test class, build two objects of the first class in the main function, respectively, through the first set of a class method for two objects x and y assignment, the final output two objects x and y variable values.
定义一个类,包含两个成员变量x和y,其中x为类变量,y为实例变量。
1)分别在类中定义获取和设置x与y的方法;(
2)创建一个测试类,在其主函数中构建第一个类的2个对象,分别通过第一个类中的设置方法,为2个对象的x和y赋值,最后输出2个对象的x和y变量值。
-(1) write a Java application
Define a class that contains two member variables x and y, where x is a class variable, y is the instance variables.
1) respectively get and set the x and y of the method defined in the class (
2) Create a test class, build two objects of the first class in the main function, respectively, through the first set of a class method for two objects x and y assignment, the final output two objects x and y variable values.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
A.class
A.java
B.class
B.java
A.java
B.class
B.java
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.