|
-
Apr 14th, 2011, 09:23 PM
#1
Thread Starter
Member
what's so great about classes?
I'm having a hard time with this concept.
Would something like this be the idea behind a class...?
Say I want to be able to specify a market, and for that market, I'd like to get back all the residential customers who have purchased $1000 or more in the last year...Specifically, I want the customer's name, dollar amount of purchases in the last year, and address.
So, I would "set" the market. Then the class functions would do the processing to find the qualifying customers, and I would "get" the name, total sales and address...
Is that more or less the idea? Then any other program that needs customer name, sales and address based on market number would create an instance of an object based on this class?
Thanks,
Jeff
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|