An Oriented Database]] (OODB) is a type of database that stores data in the form of objects. Each object represents a real-world entity or concept and consists of data, as well as the procedures (or methods) that manipulate that data. In an OODB, the fundamental building blocks are objects and es.
is a key concept in object-oriented programming and databases. It allows a class to inherit attributes and methods from another class, known as the superclass. This promotes code reuse and enables the creation of specialized classes based on more general ones.
, another crucial principle, ensures that the data and methods of an object are hidden from the outside world. This is achieved by defining access modifiers, such as private or public, to control access to the object's internals. By encapsulating data, we protect it from unauthorized modifications and ensure that it is accessed only through defined methods.
is the ability of an object to take on different forms or respond differently to the same message or method call. It allows multiple objects to share the same method name but behave differently based on their class implementation. This flexibility is one of the core benefits of using an object-oriented approach.
s represent relationships between different objects, where one object is linked to another. These relationships can be one-to-one, one-to-many, or many-to-many. Associations are vital for modeling complex systems and capturing the dependencies between objects.
is a form of association that represents a part-whole relationship. It occurs when one object contains or composes other objects as its parts. The aggregated objects can exist independently and can be shared among different composite objects.
A is a means of interacting with a database to retrieve specific information or perform operations. It provides a structured and intuitive way to access, manipulate, and manage data stored in an object-oriented database. A query language allows users or applications to write queries specifying the desired criteria or conditions to fetch the required data effectively.
Keywords
encapsulation | class | query language | [[object | aggregation | polymorphism | inheritance | association |