コード例 #1
0
        // all methods also need to be static, because the class is static

        public static Account CreateAccount(string emailAddress, typeOfAccount accountType)
        {
        }
コード例 #2
0
 //constructor (no default constructor allowed)
 public BankAccount(typeOfAccount accType, float depAmount)
 {
     typeofaccount = accType;
     depositAmount = depAmount;
 }