计算机程序分析说明class A{ static int p; int z; char c; boolean b; long l; A(int za,char ca) { this.z=za; this.c

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/02 02:02:31

计算机程序分析说明
class A
{
static int p;
int z;
char c;
boolean b;
long l;
A(int za,char ca)
{
this.z=za;
this.c=ca;
}
void f()
{
System.out.println("这是类方法f()");
 }
int j()
{
this.z=1;
System.out.println("这是类变量z="+z);
} 

void pr()
{
String s;
swich (p)
{
case 1:
s="My1";
break;
case 2:
s="My2";
break;
case 3:
s="My3";
break;

说明神马?