In the project there is a module and that module is having a class which is doing just one task for the project.But to achieve that task, the class has now many functions and it looks messy. I want to clean the code and am searching for good design patterns.There is some data that the given class is getting from the callee function and its stored in the constructor. After that there is a init() function which is having many functions inside it being called.Now, this class is having many functions and am afraid that if I don't clean now then my class will be very difficult to modify. So what is the ideal design pattern for such a sitaution?The class has reached about 1000 lines of code, which is descent but I need to do something now.Language Used : JavaPS : This is my first question on this platform, so please don't be hard on me.
Design pattern for one task with many functions
design;design patterns