Hello all. I created an ASP.NET/C# application with over 10,000 lines of code. Within the code has numberous functions that I created and is used many times by the application. My question is when is the right time to create a class(es) and how do I used the classes? How many lines of code is too much?
Thank you in advanced for all your help.
When to use classes?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Mahesh ChandRank #1 · 393.3K reputationPosted Nov 11, 2010, 10:21 AM EST
This is called object-oriented programming where a Member is an object.
In a website, if you just have some functions and there are no entities or objects, you can create helper classes. These classes are used to make the code more readable and modular. I would recommend to create classes for similar functions. For example, if you are reading, writing and updating database, you can have a class called DatabaseHelper.
Gomathi PalaniswamyRank #714 · 3.3K reputationPosted Nov 10, 2010, 7:20 PM EST
The no of lines is depends on the function of code..you can use the class when you are doing same process for many times.
Maria71 reputationPosted Nov 11, 2010, 5:20 AM EST
Maria71 reputationPosted Nov 11, 2010, 7:13 PM EST