February 27th, 2011, 01:28 PM
Newbie Question: When to use classes?
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?
Thanks in advance and sorry for my sorry English skills
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!