Information Modeling &
Exchange
Inheritance
Entity sets
It is a set (or collection) of entities of the same type which share the similar properties or attributes.
Entity sets can have subsets. These subsets have the same properties, attributes, … as the superset.
“Supervisee is a subset of Employee.”
“Supervisee inherits from Employee.”
Single inheritance
ERD
The entity set Kid is a subset of entity set Person
Inheritance and LSP
states that objects of a superclass should be replaceable with objects of its subclasses without
breaking the application. In other words, what we want is to have the objects of our subclasses
behaving the same way as the objects of our superclass.
LSP (Liskov Subsitution Principle) is one of the SOLID principles:
SRP: Single Responsibility Principle
OCP: Open/Closed Principle
LSP: Liskov Substitution Principle
ISP: Interface Segregation Principle
DIP: Dependency Inversion Principle
For geometric figures: DIA’s
Behavioural LSP
1 Information Modeling 2022/23
, 2 Information Modeling 2022/23
Exchange
Inheritance
Entity sets
It is a set (or collection) of entities of the same type which share the similar properties or attributes.
Entity sets can have subsets. These subsets have the same properties, attributes, … as the superset.
“Supervisee is a subset of Employee.”
“Supervisee inherits from Employee.”
Single inheritance
ERD
The entity set Kid is a subset of entity set Person
Inheritance and LSP
states that objects of a superclass should be replaceable with objects of its subclasses without
breaking the application. In other words, what we want is to have the objects of our subclasses
behaving the same way as the objects of our superclass.
LSP (Liskov Subsitution Principle) is one of the SOLID principles:
SRP: Single Responsibility Principle
OCP: Open/Closed Principle
LSP: Liskov Substitution Principle
ISP: Interface Segregation Principle
DIP: Dependency Inversion Principle
For geometric figures: DIA’s
Behavioural LSP
1 Information Modeling 2022/23
, 2 Information Modeling 2022/23