Exemple #1
0
        // all methods also need to be static, because the class is static

        public static Account CreateAccount(string emailAddress, typeOfAccount accountType)
        {
        }
 //constructor (no default constructor allowed)
 public BankAccount(typeOfAccount accType, float depAmount)
 {
     typeofaccount = accType;
     depositAmount = depAmount;
 }