Open In App

Basic Object Oriented Data Model

Need of Object Oriented Data Model : 
To represent the complex real world problems there was a need for a data model that is closely related to real world. Object Oriented Data Model represents the real world problems easily. 

Object Oriented Data Model : 
In Object Oriented Data Model, data and their relationships are contained in a single structure which is referred as object in this data model. In this, real world problems are represented as objects with different attributes. All objects have multiple relationships between them. Basically, it is combination of Object Oriented programming and Relational Database Model as it is clear from the following figure :  



Object Oriented Data Model 
= Combination of Object Oriented Programming + Relational database model

Components of Object Oriented Data Model : 

 



Basic Object Oriented Data Model

 

class student
{
    char Name[20];
    int roll_no;
    --
    --
    public:
    void search();
    void update();
}

In this example, students refers to class and S1, S2 are the objects of class which can be created in main function. 

Advantages of Object Oriented Data Model : 

Disadvantages of Object Oriented Data Model : 

Article Tags :