So, create a class in your project, that'll create the class stub for you, name 
it "ATMClass".

Then in the class, create the properties within that class, start typing public 
property and it'll do the stub, then, create five methods (can be subs or 
functions, you'll likely want functions to know if it succeeds or not), all 
with parametric values for what each needs.

In visual studio when you create most of these the stubs are done for you so 
all you do is add your values to things.

So for the first method in vb it may be ... Public Sub GetBalance(ByVal 
AcctNumber as Int32, ByVal AcctType as String)

hth,

tom mallard
   .net web apps - project mgmt
      consumer product design

----- Original Message -----
From: "dmccollins" <[email protected]>
To: [email protected]
Sent: Monday, October 12, 2009 4:07:30 PM GMT -07:00 U.S. Mountain Time 
(Arizona)
Subject: [AspNet2] ATMClass - Help for a newbie






Greetings all~ 

I'm new to asp.net and wanted to know how I do the following: 

"Automated Teller Machine" 

-Create a program with a user interface similar to the calculator(I did this 
one already) example. 
e.g. Buttons, Labels, Check-box, List, Panels. 

-Create a separate panel to enter the initial balance. 

-Create an ATM "Class" (Name it ATMClass) to represent each ATM, with the 
following Methods and 
Properties: 

Initial Balance for Saving and Checking (Properties) 
Withdraw Cash (Method) 
Quick withdrawal from checking - $40 (Method) 
Deposit (Method) 
Check Balance (Method) 
Close Account (Clears Balances and disables all Buttons) (Method) 



Reply via email to