Short note on Object structure. What are the types of object strcuture?
OBJECT STRUCTURE
The structure of an object refers to the properties that an object is made up of. These properties of an object are referred to as an attribute. Thus, an object is a real-world entity with certain attributes that makes up the object structure. Also, an object encapsulates the data code into a single unit which in turn provides data abstraction by hiding the implementation details from the user. Any object has two properties i.e. state & behavior hence, it's similar to the program variable but the object has a complex structure. There are two types of objects:
- Transient object
- Persistent object
Transient object
These objects exist during the execution but destroy once the program terminates.
Persistent object
These objects persist & store in the database even if the program terminates. Whenever any object is created DBMS assigns a unique identifier called object identity & it's abbreviated as OID.
Comments
Post a Comment