Object Oriented Principles for Class Design
Identifying & Designing a OO class is an art. Each Software Architect uses a various techniques to identify the class.
Design principles form the base of noble object-oriented design and design patterns deliver universal repeatable solutions for common software problems.
Principles for Designing an OO Class
However according to OO Design Principles, there are five principles that any software architect must follow when design a OO class:
- SRP – The Single Responsibility Principle
- OCP – The Open Closed Principle
- LSP – The Liskov Substitution Principle
- DIP – The Dependency Inversion Principle
- ISP – The Interface Segregation Principle