要实例化GetProducts类,并调用该类的一个无参的方法AllProducts,该采用下面的()代码。A.GetProducts GP=new GetProducts ; int allP=GP.AllProducts;

B.GetProducts GP=new GetProducts ; int allP=GP.AllProducts(); C.GetProducts GP=new GetProducts() ; int allP=GP.AllProducts; D.GetProducts GP=new GetProducts (); int allP=GP.AllProducts();

时间:2024-03-18 22:31:16

相似题目