Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Object-Oriented Software Design: Lecture Notes on Basic Mechanisms and Key Concepts - Prof, Lecture notes of Software Engineering

lecter notes which cover in class and for exam prepration

Typology: Lecture notes

2021/2022

Uploaded on 03/24/2023

abhinay-yadav-2
abhinay-yadav-2 🇮🇳

6 documents

1 / 84

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
Object-Oriented
Software Design (lecture 7)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54

Partial preview of the text

Download Object-Oriented Software Design: Lecture Notes on Basic Mechanisms and Key Concepts - Prof and more Lecture notes Software Engineering in PDF only on Docsity!

Object-Oriented

Software Design (lecture 7)

Basic Mechanisms:

Objects:

 A real-world entity.

 A system is designed as a set of

interacting objects.

Consists of data (attributes) and

functions (methods) that operate on data

 Hides organization of internal information

(Data abstraction)

 Examples: an employee, a book etc.

 Class:

Instances are objects

Template for object creation

Examples: set of all employees,

different types of book

 Methods and message:

 Operations supported by an

object

 Means for manipulating the data

of other objects

 Invoked by sending message

 Examples: calculate_salary, issue-

book, member_details, etc.

 Multiple Inheritance:

Subclass can inherit attributes and

methods from more than one base

class

Multiple inheritance is represented

by arrows drawn from the subclass to

each of the base classes

LibraryMember

UnderGrad PostGrad Research

Faculty Students Staff

Base Class

Derived

Classes

LibraryMember

UnderGrad PostGrad Research

Faculty Students Staff

Base Class

Multiple

Inheritance

 Advantages of abstraction:

Reduces complexity of software

Increases software productivity

It is shown that software

productivity is inversely

proportional to software

complexity

 Encapsulation:

Objects communicate outside world

through messages

Objects data encapsulated within its

methods

 Polymorphism:

 Denotes to poly (many)

morphism (forms)

 Same message result in

different actions by different

objects (static binding)

 Dynamic binding:

In inheritance hierarchy, an object can be

assigned to another object of its ancestor

class

A method call to an ancestor object would

result in the invocation of appropriate

method of object of the derived class

 Composite objects:

Object containing other objects

 Code and design reuse

 Increased productivity

 Ease of testing & maintenance

 Better understandability

 Its agreed that increased

productivity is chief advantage

Advantages

of Object-oriented design

 UML is a modelling language

 Not a system design or

development methodology

 Used to document object-

oriented analysis and design

 Independent of any specific

design methodology

Object

modelling using UML

 Based Principally on

 OMT [Rumbaugh 1991]

 Booch’s methodology[Booch 1991]

 OOSE [Jacobson 1992]

 Odell’s methodology[Odell 1992]

 Shlaer and Mellor [Shlaer 1992]

UML