Classes and Objects
Classes and Objects
- The TV example speaks of objects and classes:
- My TV is a single TV object
- Any TV object is an instance of the TV class
- TV is a kind of home electronics appliance representable by the TV class
- A class provides a well-defined, complete interface
- its external relations/ attachments should be fully defined
- A class should represent a concept in the problem domain
- Humans can easily relate to objects and classes
- This may not seem earth-shattering...
- ... but this is not the way software used to be developed