Browse over 20 million
homework answers & study documents

Computer Science

Object Oriented Programming

Type

Study Guide

Rating

Showing Page:
1/349
Object Oriented Programming (CS304) VU
© Virtual University of Pakistan
1
CS304-Handouts
Last Updated: 20/08/2009

Sign up to view the full document!

lock_open Sign Up
Object Oriented Programming (CS304) VU
© Virtual University of Pakistan
2
LECTURE NO.01...................................................................................................................................8
01.1.
I
NTRODUCTION
....................................................................................................................8
01.2.
W
HAT IS A
M
ODEL
?...........................................................................................................10
01.3.
OO
M
ODELS
: .....................................................................................................................11
01.4.
O
BJECT
-O
RIENTATION
-
A
DVANTAGES
...........................................................................12
01.5.
W
HAT IS AN
O
BJECT
? ........................................................................................................12
01.6.
T
ANGIBLE AND
I
NTANGIBLE
O
BJECTS
.............................................................................12
01.7.
S
UMMARY
:..........................................................................................................................13
LECTURE NO.02.................................................................................................................................15
02.1.
I
NFORMATION
H
IDING
: ....................................................................................................15
02.2.
E
NCAPSULATION
................................................................................................................16
02.3.
I
NTERFACE
..........................................................................................................................17
02.4.
I
MPLEMENTATION
.............................................................................................................18
02.5.
S
EPARATION OF
I
NTERFACE
&
I
MPLEMENTATION
.........................................................19
02.6.
M
ESSAGES
..........................................................................................................................19
02.7.
S
UMMARY
...........................................................................................................................19
LECTURE NO.03.................................................................................................................................21
03.1.
A
BSTRACTION
....................................................................................................................21
03.2.
C
LASSES
..............................................................................................................................23
03.3.
I
NHERITANCE
.....................................................................................................................24
LECTURE NO.04.................................................................................................................................29
04.1.
C
ONCEPTS
R
ELATED WITH
I
NHERITANCE
.......................................................................29
04.2.
G
ENERALIZATION
..............................................................................................................29
04.3.
S
UB
-
TYPING
(E
XTENSION
).................................................................................................31
04.4.
S
PECIALIZATION
(R
ESTRICTION
) .....................................................................................32
04.5.
O
VERRIDING
......................................................................................................................34
04.6.
A
BSTRACT
C
LASSES
...........................................................................................................36
04.7.
C
ONCRETE
C
LASSES
..........................................................................................................38
LECTURE NO.05.................................................................................................................................40
05.3.
S
IMPLE
A
SSOCIATION
.......................................................................................................49
05.4.
C
OMPOSITION
....................................................................................................................52
05.5.
A
GGREGATION
...................................................................................................................53
LECTURE NO.06.................................................................................................................................55
06.1.
C
LASS
C
OMPATIBILITY
......................................................................................................55
06.2.
P
OLYMORPHISM
.................................................................................................................56
06.3.
P
OLYMORPHISM IN
OO
M
ODEL
.......................................................................................56
06.4.
P
OLYMORPHISM
A
DVANTAGES
.....................................................................................57
06.5.
O
BJECT
-O
RIENTED
M
ODELING AN
E
XAMPLE
...................................................................58
LECTURE NO.07.................................................................................................................................65
07.1.
C
LASS
..................................................................................................................................65
07.2.
T
YPE IN
C++ .......................................................................................................................65
07.3.
A
BSTRACTION
....................................................................................................................66
07.4.
D
EFINING A
N
EW
U
SER
D
EFINED
T
YPE
...........................................................................66
07.5.
O
BJECT AND
C
LASS
: ..........................................................................................................68
07.6.
A
CCESSING MEMBERS
........................................................................................................68
07.7.
A
CCESS SPECIFIERS
............................................................................................................69
LECTURE NO.08.................................................................................................................................71
08.1.
M
EMBER
F
UNCTIONS
........................................................................................................71

Sign up to view the full document!

lock_open Sign Up

Sign up to view the full document!

lock_open Sign Up

Unformatted Attachment Preview

Object Oriented Programming (CS304)VUCS304-HandoutsLast Updated: 20/08/2009 Virtual University of Pakistan1Object Oriented Programming (CS304)VULECTURE NO.01...................................................................................................................................801.1.01.2.01.3.01.4.01.5.01.6.01.7.INTRODUCTION....................................................................................................................8WHAT IS A MODEL?...........................................................................................................10OO MODELS: .....................................................................................................................11OBJECT-ORIENTATION - ADVANTAGES...........................................................................12WHAT IS AN OBJECT? ........................................................................................................12TANGIBLE AND INTANGIBLE OBJECTS .............................................................................12SUMMARY:..........................................................................................................................13LECTURE NO.02.................................................................................................................................1502.1.02.2.02.3.02.4.02.5.02.6.02.7.INFORMATION HIDING: ........................................................................ ...
Purchase document to see full attachment

Anonymous
Had to paraphrase some of the content but overall, really useful material.

Anonymous
Heard about Studypool for a while and finally tried it. Glad I did caus this was really helpful.

Anonymous
Just what I needed… fantastic!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4