ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalCOMP3150Principles Of Object T…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    COMP3150

    Object Oriented Analysis and Design

    Progress0 / 17 done
    Topics17
    1Principles of Object Technology2OOP Review3Principles of Modeling4OOA&D Overview5OO Development Process
    6Use Cases and Prototyping7Class Models8Interaction Diagrams9Verification and Validation10Architectural and Detailed Design11Class Diagrams12State Machines and Diagrams13Implementation and Package Diagrams14Activity Diagrams15OO Patterns16Object Diagram, Component Diagram, and Deployment Diagram17Network Diagram
    4 min read
    Topic 1 of 17
    Topic Study Note Illustration
    01

    Principles of Object Technology

    Object Technology refers to a way of designing and developing software using objects , which represent real-world entities. These objects contain data (attributes) and behavior (methods/functions) .

    πŸ“˜ Principles of Object Technology (OOAD)


    πŸ”Ή 1. Definition

    Object Technology refers to a way of designing and developing software using objects, which represent real-world entities. These objects contain data (attributes) and behavior (methods/functions).

    πŸ‘‰ In simple words: Instead of writing long procedures, we break a system into smaller objects that interact with each other.


    πŸ”Ή 2. Core Principles of Object Technology

    These principles are the foundation of Object-Oriented Analysis and Design (OOAD).


    πŸ”Έ 2.1 Abstraction

    Definition: Abstraction means showing only essential features of an object and hiding unnecessary details.

    Key Idea: Focus on what an object does, not how it does it.

    Example: A Car object:

    • You use steering, brakes, accelerator
    • You don’t need to know how the engine works internally

    Diagram Description: A simple box labeled Car with only relevant features like start(), stop().


    πŸ”Έ 2.2 Encapsulation (Data Hiding)

    Definition: Encapsulation is the process of wrapping data and methods together into a single unit (class) and restricting direct access to some components.

    Key Idea: Protect data from outside interference.

    Example:

    BankAccount
    - balance (private)
    + deposit()
    + withdraw()
    

    Users cannot directly change balance, only through methods.

    Rule: Use access modifiers:

    • Private
    • Public
    • Protected

    πŸ”Έ 2.3 Inheritance

    Definition: Inheritance allows one class (child/subclass) to acquire properties and behavior of another class (parent/superclass).

    Key Idea: Code reuse and hierarchical classification.

    Example:

    Vehicle (Parent)
      β†’ Car (Child)
      β†’ Bike (Child)
    

    Types of Inheritance:

    • Single
    • Multiple
    • Multilevel
    • Hierarchical

    Diagram Description: Tree structure showing parent β†’ child relationship.


    πŸ”Έ 2.4 Polymorphism

    Definition: Polymorphism means one interface, multiple implementations.

    Types:

    1. Compile-time (Method Overloading)
    2. Run-time (Method Overriding)

    Example:

    draw()
    - draw(circle)
    - draw(square)
    

    Real-life Example: A person can be a teacher, father, or friend depending on context.


    πŸ”Έ 2.5 Modularity

    Definition: Breaking a system into smaller independent modules.

    Key Idea: Each module handles a specific task.

    Advantages:

    • Easy to understand
    • Easy to maintain
    • Reusable

    πŸ”Έ 2.6 Hierarchy

    Definition: Arrangement of objects/classes in a tree-like structure.

    Example:

    Animal
     β”œβ”€β”€ Mammal
     β”œβ”€β”€ Bird
    

    πŸ”Έ 2.7 Typing

    Definition: Typing ensures that objects are used according to their defined data types and class structure.

    Types:

    • Strong typing
    • Weak typing

    πŸ”Έ 2.8 Concurrency

    Definition: Ability of a system to handle multiple tasks simultaneously.

    Example: Using multiple threads in a program.


    πŸ”Έ 2.9 Persistence

    Definition: Objects continue to exist even after program execution.

    Example: Saving data in a database or file.


    πŸ”Ή 3. Additional Supporting Concepts


    πŸ”Έ 3.1 Class vs Object

    Class Object
    Blueprint Instance
    Logical Physical
    Example: Car design Actual car

    πŸ”Έ 3.2 Message Passing

    Definition: Objects communicate by sending messages (calling methods).

    Example:

    object1.method(object2)
    

    πŸ”Έ 3.3 Association, Aggregation, Composition

    Concept Description
    Association General relationship
    Aggregation Weak "has-a" relationship
    Composition Strong ownership

    Example:

    • Car has Engine β†’ Composition

    πŸ”Ή 4. Advantages of Object Technology

    • Reusability
    • Flexibility
    • Maintainability
    • Scalability
    • Real-world modeling

    πŸ”Ή 5. Step-by-Step Example (Simple System)

    πŸ‘‰ Problem: Design a Library System

    Step 1: Identify objects

    • Book, Member, Librarian

    Step 2: Define attributes

    • Book β†’ title, author

    Step 3: Define methods

    • issueBook(), returnBook()

    Step 4: Establish relationships

    • Member borrows Book

    πŸ”Ή 6. Important Rules / Key Points

    • Always encapsulate data
    • Prefer inheritance for reuse
    • Use polymorphism for flexibility
    • Keep modules loosely coupled
    • Design for real-world mapping

    πŸ”Ή 7. Likely Exam Questions

    1. Define Object Technology and explain its importance.
    2. Explain Abstraction with an example.
    3. What is Encapsulation? How does it provide data security?
    4. Describe Inheritance and its types.
    5. What is Polymorphism? Explain with examples.
    6. Differentiate between Class and Object.
    7. Explain Association, Aggregation, and Composition.
    8. What is Modularity and why is it important?
    9. Explain Concurrency and Persistence.
    10. Draw and explain a simple class hierarchy diagram.

    πŸ”Ή 8. Quick Revision Summary 🧠

    • Object Technology = System built using objects
    • Abstraction β†’ Show essentials only
    • Encapsulation β†’ Protect data
    • Inheritance β†’ Reuse code
    • Polymorphism β†’ Many forms
    • Modularity β†’ Divide system
    • Hierarchy β†’ Structured relationships
    • Typing β†’ Data correctness
    • Concurrency β†’ Multiple tasks
    • Persistence β†’ Data survives

    πŸ‘‰ Remember: "A PIE MHTCP" Trick (A β†’ Abstraction, P β†’ Polymorphism, I β†’ Inheritance, E β†’ Encapsulation, M β†’ Modularity, H β†’ Hierarchy, T β†’ Typing, C β†’ Concurrency, P β†’ Persistence)


    Next topic 2 β†’
    OOP Review

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    4mremaining
    694words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Object Oriented Analysis and Design