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.
Loading
Mahesh ChandPosted Nov 11, 2010, 3:21 PM
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.
MariaPosted Nov 12, 2010, 12:13 AM
MariaPosted Nov 11, 2010, 10:20 AM
Gomathi PalaniswamyPosted Nov 11, 2010, 12:20 AM
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.