answersLogoWhite

0

Define object oriented data model

Updated: 8/10/2023
User Avatar

Wiki User

13y ago

Best Answer

It is based on collection of objects.An object contain values stored in instance variables within the object.An object also contains the bodies of code that operate on object.These bodies of code is called methods.Collection of instance variables and method is called classes.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago
Object-based Logical Models
  1. Object-based logical models:
    • Describe data at the conceptual and view levels.
    • Provide fairly flexible structuring capabilities.
    • Allow one to specify data constraints explicitly.
    • Over 30 such models, including
      • Entity-relationship model.
      • Object-oriented model.
      • Binary model.
      • Semantic data model.
      • Infological model.
      • Functional data model.
  2. At this point, we'll take a closer look at the entity-relationship (E-R) and object-orientedmodels.
The E-R Model
  1. The entity-relationship model is based on a perception of the world as consisting of a collection of basic objects(entities) and relationships among these objects.
    • An entity is a distinguishable object that exists.
    • Each entity has associated with it a set of attributesdescribing it.
    • E.g. number and balance for an account entity.
    • A relationship is an association among several entities.
    • e.g. A cust_acct relationship associates a customer with each account he or she has.
    • The set of all entities or relationships of the same type is called the entity set or relationship set.
    • Another essential element of the E-R diagram is the mapping cardinalities, which express the number of entities to which another entity can be associated via a relationship set.

We'll see later how well this model works to describe real world situations.

  1. The overall logical structure of a database can be expressed graphically by an E-R diagram:
    • rectangles: represent entity sets.
    • ellipses: represent attributes.
    • diamonds: represent relationships among entity sets.
    • lines: link attributes to entity sets and entity sets to relationships.

See figure 1.2 for an example.

Figure 1.2: A sample E-R diagram.

The Object-Oriented Model
  1. The object-oriented model is based on a collection of objects, like the E-R model.
    • An object contains values stored in instance variableswithin the object.
    • Unlike the record-oriented models, these values are themselves objects.
    • Thus objects contain objects to an arbitrarily deep level of nesting.
    • An object also contains bodies of code that operate on the the object.
    • These bodies of code are called methods.
    • Objects that contain the same types of values and the same methods are grouped into classes.
    • A class may be viewed as a type definition for objects.
    • Analogy: the programming language concept of an abstract data type.
    • The only way in which one object can access the data of another object is by invoking the method of that other object.
    • This is called sending a message to the object.
    • Internal parts of the object, the instance variables and method code, are not visible externally.
    • Result is two levels of data abstraction.

For example, consider an object representing a bank account.

    • The object contains instance variables number and balance.
    • The object contains a method pay-interest which adds interest to the balance.
    • Under most data models, changing the interest rate entails changing code in application programs.
    • In the object-oriented model, this only entails a change within the pay-interest method.
    • Two objects containing the same values are distinct.
    • Distinction is created and maintained in physical level by assigning distinct object identifiers.
  1. Unlike entities in the E-R model, each object has its own unique identity, independent of the values it contains:
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Define object oriented data model
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Define object in software engineering?

Objects are complex types that have multiple pieces of information and specific properties (or attributes). Objects can be manipulated by the commands of a programming language, such as a value, variable, function, or data structure. They are the foundation of object-oriented programming, and are fundamental data types in object-oriented programming languages.


Is c plus plus is pure object oriented?

No. C is not object-oriented, it is a procedural language.C++, while object-oriented, is not purelyobject-oriented. One of the requirements for a pure object-oriented language is that everything is an object. C++ still has primitive data types (int, long, double, etc.), and so is not purely object-oriented.


What are the different type of Architecture in Software Engineering?

the different software engineering paradigms are:- waterfall model prototyping model object oriented model spiral model WINWIN spiral model incremental model evolutionary model Paradigm means how to solve...Types are: Imperitive Paradigm Object Oriented Paradigm Functional Paradigm Logic Paradigm Data Paradigm


Which language is 100 percent pure object oriented language?

The languages C# and Ruby are notable for their pure object oriented design. You can even call instance functions on literals, such as 10.to_s (Ruby) or 10.ToString() (C#). Other object-oriented designs tend to treat primitives as non-objects, such as in Java, and are therefore not technically "100%" object-oriented.


Is c plus plus an object oriented language or an object based language?

C++ is object-oriented. It is not object-based because, like C before it, C++ supports the principal of primitive data types, which are not object-based.

Related questions

Define data models and list different types of data models?

A data model is a collection of concepts that can be used to describe the structure of a database and provides the necessary means to achieve this abstraction whereas structure of a database means the data types,relationships and constraints that should hold on the data. Data model are divided into three different groups they are 1)object based logical model 2)record based logical models 3)physical models Types: Entity-Relationship (E-R) Data Model Object-Oriented Data Model Physical Data Model functional data model


What is object oriented in c plus plus?

Object-oriented programming is a feature in C++ that allows you to better model real-world objects. An object is an instance of a class, which is a data structure in C++ that allows you to group different, but related types of data together.


What is OOP language?

Before Object oriented programming the term which was used was “Structural Programming” where a programmer has to use the predefined data types, they cannot define their own data type. But when the term object oriented programming start in programming programmer become able to define its own data type according to their own use. Here a coder can define its own data types called classes and then create object from these classes. Coding in Object Oriented language Advantages of Object Oriented Programming One of the main advantages of OOP over procedural programming techniques is that they enable programmers to create modules that do not need to be changed when a new type of object is added. A programmer simply can create a new object that inherits from existing objects many of its features . This makes object-oriented programs easier for programmer to modify.


Advantages and disadvantages of object oriented databases?

advantages of object oriented data base


What is copy constructor in object oriented programming?

The purpose of constructor in object oriented programming is to initialize data. Likewise copy constructors are used to initialize an object with data from another object.


Data-Oriented Programming in Java?

Data-Oriented Programming (DOP) focuses on decreasing the complexity of the Object-Oriented Programming (OOP) application systems by rethinking data


Does an object oriented database store data in tables?

No, object-oriented databases do not store data in tables like relational databases. Instead, they store data as objects that have attributes and methods associated with them. Objects in an object-oriented database can also have relationships with other objects, making it a more flexible way to store and access data.


What is the object-oriented model?

This breaks the problem in terms of objects. It is different from functional approach, as it binds the data and the operations that can be performed on data in a unit. By doing this it promotes encaptulation.


Define object in software engineering?

Objects are complex types that have multiple pieces of information and specific properties (or attributes). Objects can be manipulated by the commands of a programming language, such as a value, variable, function, or data structure. They are the foundation of object-oriented programming, and are fundamental data types in object-oriented programming languages.


What is the advantages of object oriented data model?

Object oriented means the internal structures used in an application represent the real world 'objects'. This means the application you are creating is using a model that is closer to the real world and that is always an advantage. The biggest advantage may be in the form of easy maintenance as the application evolves.


What is a database that stores data in objects?

An object-oriented database (OODB) is a type of database that stores data in objects rather than in tables, making it easier to represent complex relationships and hierarchies in data. OODBs are designed to work well with object-oriented programming languages and frameworks.


How do you define pure object oriented language?

If an object oriented language supports the concept of primitive data types then the language is not a pure. C++ is not pure because it supports raw data pointers and fundamental types like int and float, none of which have member methods associated with them. Java, on the other hand, is pure object oriented because it has no primitive data types; all types are implemented as objects. Java is therefore easier to use than C++, but is less efficient because it provides no low-level interaction with the machine.