|
-
February 27th, 2011, 02:28 PM
#1
Newbie Question: When to use classes?
Hello, everyone.
I recently started studying c# and whole object oriented programming while creating an website for my employer. The website will be managing students(new students, collect documents, etc) and everything is going fine but I suddenly started asking myself if I needed to use classes.
for example, I got registering a new students to work without using classes.. but I guess if I really wanted to use OOP, I could have created a class called students with all those fields including name, address, ID, etc.
but if I did that, I would basically be doing 2 codings: 1 to add textbox values to the student classes, then other one to add student class fields to the database.
Is it always good idea to use classes? or can I just skip it if I am not going to re-use the object?
Please reply!!!
Thanks in advance and sorry for my sorry English skills
Tags for this Thread
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
|