Академический Документы
Профессиональный Документы
Культура Документы
INTRODUCTION TO
ALGORITHMS AND DATA
STRUCTURES
1
LEARNING OBJECTIVES
• Defining Object Oriented (OO) Concepts
• Objects
• Classes
• Abstraction
• Encapsulation
• Inheritance
• Overloading
• Overriding
• C++ Implementation of Class
2
OBJECT ORIENTED PROGRAMMING
• Object Oriented Programming (OOP)
3
OOP CONCEPTS FOR LANGUAGES
• Object Oriented Programming C++
4
OOP EXPLANANTION
• Brief explanation of OOP
5
OOP EXPLANANTION Contd
6
OOP EXPLANANTION Contd
7
OOP EXPLANANTION Contd
8
OOP EXPLANANTION Contd
9
OOP EXPLANANTION Contd
10
CLASS DEFINITION
• Class is defined as
11
CLASS DEFINITION
• Explanation
12
CLASS DEFINITION
• Class or type
13
INHERITANCE
• Definition and Concept
14
INHERITANCE
• Explanation
15
OBJECT DEFINITION
• Definition
16
OBJECT DEFINITION
• Brief description
17
OBJEC DEFINITION
• Explanation
18
ABSTRACTION
• Definition
19
ABSTACTION
• Explanation
20
ABSTRACTION
• Hidden within some class
21
ENCAPSULATION
• Defined as
22
ENCAPSULATION
• Description
23
ENCAPSULATION
• Explanation
24
ENCAPSULATION
• Private variables that cannot be accessed outside
25
ENCAPSULATION
• Also referred as Data hiding
26
POLYMORPHISM
• Definition
27
POLYMORPHISM
• Multiple ways of explaining
28
POLYMORPHISM
• Procedure using
29
POLYMORPHISM
• Types of polymorphism
30
OVERLOADING
• Overloading in polymorphism
31
OVERRIDING
• Overriding in polymorphism
32
Coding Class C++
• Implementation of class using C++
33
Coding Class in C++
• Implementation of class
34
SUMMARY
• Object oriented concepts
• Definition
• Examples
• Implement and understand figure 1.7, 1.8 and 1.9 of book Chapter 1
35