关于代码:Cst_customer customer=new Cst_customer();
为什么我实例化了一个对象**_customer_**却不能使用?
//这个一个类
public class Cst_customer_Test {
//这句话是创建了一个类的属性变量
Cst_customer customer=new Cst_customer();
//调用变量,要写在类的方法体里面
public void GetCustomer()
{
customer.Func();
}
}
看不清楚,建议贴代码
get.()set(),你确定你写了,你的import引用是OK 的
在方法里面去调用方法,比如主方法
类:首字母大写,如果一个类由多个单词构成,那么每个单词的首字母都大写,而且中间不使用任何的连接符。尽量使用英文。如ConnectionFactory
这个类的作用域,public ,
你直接写代码,不要看帮助
代码和报错贴出来比较好,哪一步有问题说明一下
直接把代码和爆出来的错给我们看一下
你需要把报的错误贴出来