IceBergClass -AntiPattern

found some article here

its a good read… !!

In Short.. its not good to have more PRIVATE methods in your class.
if you have more methods that depends on some behaviour.. its better to have abstracted them. i.e have an interface and declare all your behaviours in the interface and have the class implement this interface.. so that you will abstract the behaviour in to a concrete class and if ever this behaviour were to be changed, you will do changes in the concrete class.. by that way you will be adhering to single responsibility principle and open closed principle

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s