Начать. Это бесплатно
или регистрация c помощью Вашего email-адреса
Object Oriented Paradigm создатель Mind Map: Object Oriented Paradigm

1. Introducing the object-oriented paradigm

1.1. Class

1.1.1. Class consists of: +Public interface +Detailed implementation

1.1.2. Definition of class usually consists of: Possibly included in a package or namespace List of attributes List of operations

1.2. Accessibility Principle

1.2.1. When assigning accessibility of an attribute (operation): Expose as least information as possible!

1.3. Relationship Among Classes

1.3.1. Very Complex! A partial list of relationships: +Instance Level Relationships: -Association -Aggregation -Composition +Class Level Relationships -Generalization -Realization +General Relationship -Dependency

1.4. External Link

1.4.1. A link is the basic relationship among objects. It is represented as a line connecting two or more object boxes. It can be shown on an object diagram or class diagram. A link is an instance of an association. It creates a relationship between two classes.

1.5. Association Relation and Aggregation relation

1.5.1. Differences between Composition and Aggregation

1.5.1.1. +When attempting to represent real-world whole-part relationships, the composition relationship is most appropriate. +When representing a software or database relationship , an aggregation relationship is best

1.5.2. Aggregation relation

1.5.2.1. Aggregation is a special case of association. A kind of “whole-part” relationship. Parts do not have to share the same lifespan as owner. In UML, aggregation is represented using a hollow diamond arrowhead.

1.5.3. Composition Relation

1.5.3.1. Composition is a stronger variant of the "owns a“ relationship Composition is more specific than aggregation. Requirement: the lifespan of “components” and “owner” involved in a composition relationship must be same. Is represented using a solid diamond arrowhead

1.6. Association Relation

1.6.1. An association is a connection between classes, a semantic connection (link) between objects of the classes involved in the association. An association is normally bidirectional

1.7. Generalization relation

1.7.1. +The generalization relationship is also known as the inheritance or "is a" relationship. +Subclass is considered to be a specialized form of super class. Super class is considered as 'Generalization' of subclass. +The UML graphical representation of a Generalization is a hollow triangle shape on the superclass end of the line

1.8. General Principle

1.8.1. -Use inheritance only if derived class IS-A base class -Composition (Aggregation) is used to model HAS-A relationship -Careful about inheritance, sometimes, weakens the encapsulation principle

2. Introduction to Object- Oriented

2.1. OO Principles

2.1.1. Encapsulation

2.1.1.1. Often called information hiding .It use to separate interface from implementation. By hiding the implementation details that are likely to change -> allows for flexibility in design, easy teamwork working.

2.1.2. Inheritance

2.1.2.1. It mean a class can inherit from its base class. Inheritance allows software reuse, hence improving the effectiveness of software development.

2.1.3. Polymorphism

2.1.3.1. refer to ability of an object to behave differently and assume different forms based on its inheritance hierarchy.

2.1.3.2. it include Vertical override operations between parent classes and derived classes

2.1.3.3. include Horizontal overloading operations within the same class.

2.2. OO Software Engineering

2.2.1. OO Analysis

2.2.2. OO Design

2.2.3. OO Programming

2.3. A very popular design approach, applies to many of the software architecture styles.

2.4. Popular since 1980’s.

2.5. OO programming language: C++, Java, C#

2.6. Use of OO

2.6.1. Although treated as an “architecture style” in the book Should be used as a methodology

2.6.2. All other architecture styles can be described using OO