Typing
Typing involves categorizing objects based on their data types (e.g., integers, strings, custon objects) to ensure they are used appropriately.
Example:
Think about sorting your belongings. You wouldn’t mix up your books, clothes, and kitchen utensils in the same box. Similarly, in programming, you categorize data based on their data types (e.g., numbers, text, dates) to perform operations correctly. This helps to prevent errors and make code more readable and maintainable.
Object Oriented Principles in OOAD
Object-oriented principles are a set of guidelines for designing and implementing software systems that are based on the idea of objects. Objects are self-contained units of code that have both data and behavior. They can interact with each other to perform tasks.
Object-Oriented Analysis and Design (OOAD) is a software engineering methodology that uses object-oriented principles to design and implement software systems. OOAD involves a number of techniques and practices, including:
- Object-Oriented Modelling: This involves using visual diagrams to represent the different objects in a software system and their relationships to each other.
- Use Cases: This involves describing the different ways in which users will interact with a software system.
- Design Patterns: This involves using reusable solutions to common problems in software design.
Important Topics for Object Oriented Principles in OOAD
- Abstraction
- Encapsulation
- Modularity
- Hierarchy
- Typing
- Concurrency
- Persistence
- Conclusion