c#之中有一句是这样写的:Product product = new Product("007","c500","nok
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/12 08:46:43
c#之中有一句是这样写的:Product product = new Product("007","c500","nokia",1250);请问各词什么意
Product product = new Product("007", "c500", "nokia", 1250);
Product:对象
product :对象的实例
=new Product:实例化对象的实例
("007", "c500", "nokia", 1250):实例化对象时传递的参数,共传递了3个字符型参数,一个数值型参数.
;:结束符
Product:对象
product :对象的实例
=new Product:实例化对象的实例
("007", "c500", "nokia", 1250):实例化对象时传递的参数,共传递了3个字符型参数,一个数值型参数.
;:结束符