BCA / B.Tech 7 min read

Object-Oriented Model

What is Object-Oriented Modeling in RDBMS:

Object-Oriented Modeling is an approach that applies concepts from object-oriented programming (OOP) to database design. While RDBMS is relational, some systems (Object-Relational DBMS) incorporate these concepts.

Key Components:
  • Objects: Represent real-world entities with state (attributes) and behavior (methods). For example, a "Car" object might have attributes like color and model, and methods like `start()` and `stop()`.
  • Classes: A blueprint for creating objects. A class defines the attributes and methods that its objects will have.
  • Inheritance: Allows a new class (subclass) to take on the properties and methods of an existing class (superclass). This promotes code reuse.
  • Encapsulation: The bundling of data (attributes) and the methods that operate on the data into a single unit (an object). This hides the internal state of an object from the outside.
  • Polymorphism: The ability of an object to take on many forms. For example, a `draw()` method could behave differently for a `Circle` object versus a `Square` object.