关于java的执行流程
import java.awt.*;
import java.awt.event.*;
public class UsePhone
{
public static void main(String arg[])
{
PhoneCard myCard=new PhoneCard(12345678.1234.50.0, "300 ");
System.out.printIn(myCard.toString( ));
}
}
class PhoneCard
{
long cardNumber;
private int password;
double balance;
String connnectNumber;
boolean connected;
PhoneCard(long cn,it pw,double b,String s)
{
cardNumber = cn;
password = pw;
if(b> 0)
balance = b;
else
System.exit(1);
connectNumber = s;
connected = false;
}
boolean performConnection(long cn,int pw)
{
if(cn == cardNumber&&pw == password )
{
connected = true;
return true
}
else
{
connected = false;
return false;
}
}
double getBalance