Click here to Skip to main content
15,889,851 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hey all,

Which conditions of a program should be met for me to make the choice of encapsulating a particular part of it into a class?
When would you split a class into two seperate classes?

Thanks,
Posted

1 solution

You could base your judgement on when to do this and when not using Cohesion and Coupling. For a good discussion, see here[^].
 
Share this answer
 
v2
Comments
R. Erasmus 15-Dec-10 4:15am    
Thanks, information you have given is very useful.
Abhinav S 15-Dec-10 4:24am    
You are welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900