对于前 我有类A类B类C我想使用在类C中定义的方法,在类A中调用类B的对象.怎么做?
看看节目?我在PRint声明中遇到错误?
package com;
public class CreditCardDemo {
public static void main(String[] args)
{
CreditCardCompany C=new CreditCardCompany();
customer one=new customer(1 , 11 , 1560);
customer two =new customer(2,22,3400);
customer three=new customer(3,33,1600);
customer four=new customer(4,44,600);
customer five=new customer(3,33,100);
System.out.println("Payback amount: "+ getPybackAmount(two));
}
}
Run Code Online (Sandbox Code Playgroud)