Fundamental Concepts in OOP

Author: Tran Tuan Quy

Date: Feb 28, 2015

Content

  • Object concepts

  • Object Oriented Programming

What is Object?

Depicting Object

Encapsulation

Encapsulation refers to an object hiding its attributes behind its operations

or

it seals the
attributes in a capsule, with operations on the edge

ASSOCIATION AND AGGREGATION

All objects are connected to other objects, directly or indirectly, strongly or loosely.

There are two principal ways to connect 2 objects.

ASSOCIATION

Association

AGGREGATION

Navigable Link

LINKS AND NAVIGABILITY

Navigable Link

MESSAGING

Collaboration using message

INVOKING AN OPERATION

A message should be a question or a command, but not both.

HOW AN OBJECT-ORIENTED
PROGRAM WORKS

Garbage Collection

Classes

Different ways of thinking about a class

What does class define?

Let's summarize what we walk through

Q&A

Reference Document

This presentation is mostly extracted from "Object Oriented Analysis & Design" book of Mike O'Docherty

Thank You!

Made with Slides.com