SlideShare a Scribd company logo
8
Most read
9
Most read
15
Most read
Object Oriented Programming
Chapter 1: Introduction to OOP
Prepared by: Mahmoud Rafeek Alfarra
2016
Salamo 3likom!
I am Mahmoud R. Alfarra
I am here because I love to give knowledge.
Note: I have prepared this material Based on (Liang: “Introduction to Programming using Java”, 10’th edition, 2015)
Outlines
◉ What is Object-Oriented Programming ?
◉ Procedural vs. Object-Oriented Programming
◉ OO Programming Concepts
◉ Concept of Objects and classes
◉ UML Class Diagram
◉ Visibility Modifiers and Accessor Methods
◉ Full Example
‫قال‬ ، ‫عنه‬ ‫اهلل‬ ‫رضي‬ ‫اخلطاب‬ ‫بن‬ ‫عمر‬ ‫عن‬:‫مسعت‬
‫يقول‬ ‫وسلم‬ ‫عليه‬ ‫اهلل‬ ‫صلى‬ ‫اهلل‬ ‫رسول‬:
(،‫نوى‬ ‫ما‬ ‫امريء‬ ‫لكل‬ ‫وإمنا‬ ، ‫ّات‬‫ي‬‫بالن‬ ‫األعمال‬ ‫إمنا‬
‫إىل‬ ‫فهجرته‬ ، ‫ورسوله‬ ‫اهلل‬ ‫إىل‬ ‫هجرته‬ ‫كانت‬ ‫فمن‬
‫أو‬ ، ‫يصيبها‬ ‫لدنيا‬ ‫هجرته‬ ‫كانت‬ ‫ومن‬ ، ‫ورسوله‬ ‫اهلل‬
‫إليه‬ ‫هاجر‬ ‫ما‬ ‫إىل‬ ‫فهجرته‬ ، ‫ينكحها‬ ‫امرأة‬)
‫صحيحهما‬ ‫يف‬ ‫ومسلم‬ ‫البخاري‬ ‫رواه‬
‫وال‬ ‫ستقيم‬ ‫ت‬ ‫وال‬ ‫لو‬ ‫حت‬ ‫ال‬ ‫ياة‬ ‫احل‬
‫عاىل‬ ‫ت‬ ‫اهلل‬ ‫عة‬ ‫بطا‬ ‫إال‬ ‫سهل‬ ‫ت‬
‫ليت‬ ‫ا‬ ‫خالق‬ ‫واأل‬ ‫باآلداب‬ ‫تأدب‬ ‫وال‬
‫شريعته‬ ‫يف‬ ‫لنا‬ ‫وردت‬.
،،، ‫صح‬ ‫عيشها‬
Lecture
Let’s start with the first set of concepts
1
Our Life is a set of
Objects
o To have a fine definition of OOP, Please note what you
are showing in your class room now?
What is OOP?
Chairs
Tables
Teacher
PCs
.
.
# of legs
Type of material
Color
.
.
.
o Object-oriented programming (OOP) involves programming using
objects.
o An object represents an entity in the real world that can be
distinctly identified.
o For example, a student, a desk, a circle, a button, and even a loan
can all be viewed as objects.
o An object has a unique identity, state, and behaviors.
What is OOP?
o The unit in procedural programming
is function.
o Procedural programming
concentrates on creating functions.
o Procedural programming separates
the data of the program from the
operations that manipulate the
data.
Procedural vs. Object-Oriented Programming
o The unit in object-oriented
programming is class.
o Object-oriented programming
starts from isolating the classes,
and then look for the methods
inside them.
o Object-oriented programming
focus on both of them.
Concepts of Object-Oriented Programming
o Abstraction is simplifying complex reality by modeling classes
appropriate to the problem.
o Abstraction is mechanism to show only relevant data to the user.
o i.e: The client cares about what functionality a car offers, not
about how that functionality is implemented.
Abstraction
o Encapsulation allows the programmer to group data and the
methods that operate on them together in one place, and to hide
details from the user.
Encapsulation
AccountValue
Name Address
Change Address
withDraw any value
o Encapsulation protects the integrity of an object's data.
o Protects an object from unwanted access by clients.
 A bank app forbids a client to change an Account's balance.
o Allows you to change the class implementation.
o Allows you to constrain objects' state
Benefits of encapsulation
Abstraction Vs encapsulation
o Inheritance: The ability of a new class to be created from an
existing class by extending it.
Inheritance
Student
Colleague
BCs Diploma
School
Primary Secondary
o Polymorphism enables us to "program in the general" rather than
"program in the specific.
Polymorphism
Practices
Group 1
Compare between
the main concepts of
OOP.
Group 2
Detect 5 objects from
our classroom
Group 3
Diffrenciate between
abstraction and
encabsulation.
Group 4
Diffrenciate between
procedural and Object-
Oriented Programming
Group 5
Give us 3 examples for
inheritance from your
life.
Group 6
Summerize the first
lecture using 1
complext chart.
THANKS!
Any questions?
You can find me at:
Fb/mahmoudRAlfarra
Staff.cst.ps/mfarra
Youtube.com/mralfarra1
@mralfarra

More Related Content

What's hot (20)

PPT
Object-Oriented Programming Concepts
Kwangshin Oh
 
PPTX
Fragmentaton
sanjana mun
 
PPTX
Java abstract class & abstract methods
Shubham Dwivedi
 
PPTX
Java object oriented programming concepts - Brainsmartlabs
brainsmartlabsedu
 
PPTX
Stream classes in C++
Shyam Gupta
 
PPTX
Context switching
DarakhshanNayyab
 
PPT
Structure of C++ - R.D.Sivakumar
Sivakumar R D .
 
PPTX
object oriented Programming ppt
Nitesh Dubey
 
PPT
Basic concepts of object oriented programming
Sachin Sharma
 
PDF
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
PDF
Operating system Memory management
Shashank Asthana
 
PPTX
Object oriented programming concepts
rahuld115
 
PPTX
Tokens in C++
Mahender Boda
 
PPTX
Garbage collection
Somya Bagai
 
PPTX
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
PPTX
Computer Science-Data Structures :Abstract DataType (ADT)
St Mary's College,Thrissur,Kerala
 
PPTX
Chapter 3 servlet & jsp
Jafar Nesargi
 
PPT
Memory allocation (4)
rockymani
 
PPS
Java Exception handling
kamal kotecha
 
Object-Oriented Programming Concepts
Kwangshin Oh
 
Fragmentaton
sanjana mun
 
Java abstract class & abstract methods
Shubham Dwivedi
 
Java object oriented programming concepts - Brainsmartlabs
brainsmartlabsedu
 
Stream classes in C++
Shyam Gupta
 
Context switching
DarakhshanNayyab
 
Structure of C++ - R.D.Sivakumar
Sivakumar R D .
 
object oriented Programming ppt
Nitesh Dubey
 
Basic concepts of object oriented programming
Sachin Sharma
 
Oops concepts || Object Oriented Programming Concepts in Java
Madishetty Prathibha
 
Operating system Memory management
Shashank Asthana
 
Object oriented programming concepts
rahuld115
 
Tokens in C++
Mahender Boda
 
Garbage collection
Somya Bagai
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
Computer Science-Data Structures :Abstract DataType (ADT)
St Mary's College,Thrissur,Kerala
 
Chapter 3 servlet & jsp
Jafar Nesargi
 
Memory allocation (4)
rockymani
 
Java Exception handling
kamal kotecha
 

Viewers also liked (20)

PPTX
‫‫Chapter4 Polymorphism
Mahmoud Alfarra
 
PPTX
Object Oriented Programming_Lecture 2
Mahmoud Alfarra
 
PPT
البرمجة الهدفية بلغة جافا - مفاهيم أساسية
Mahmoud Alfarra
 
PPTX
Chapter2 array of objects
Mahmoud Alfarra
 
PPT
البرمجة الهدفية بلغة جافا - مصفوفة الكائنات
Mahmoud Alfarra
 
PPT
البرمجة الهدفية بلغة جافا - تعدد الأشكال
Mahmoud Alfarra
 
PPT
Design final
Indu Sharma Bhardwaj
 
PPT
البرمجة الهدفية بلغة جافا - مقدمة
Mahmoud Alfarra
 
PPT
Lecture 17 design concepts (2)
IIUI
 
PPT
Java Basics
Dhanunjai Bandlamudi
 
PPT
Oop Presentation
Ghaffar Khan
 
PPT
Chapter1 - Introduction to Object-Oriented Programming and Software Development
Eduardo Bergavera
 
PPTX
‫Chapter3 inheritance
Mahmoud Alfarra
 
PPTX
Procedural vs. object oriented programming
Haris Bin Zahid
 
PPTX
Graphs data Structure
Mahmoud Alfarra
 
PPTX
Document clustering and classification
Mahmoud Alfarra
 
PPT
Java Basics
shivamgarg_nitj
 
PDF
Introduction to oops concepts
Nilesh Dalvi
 
PDF
Introduction to Object-Oriented Programming & Design Principles (TCF 2014)
Michael Redlich
 
PPT
Computer Programming- Lecture 4
Dr. Md. Shohel Sayeed
 
‫‫Chapter4 Polymorphism
Mahmoud Alfarra
 
Object Oriented Programming_Lecture 2
Mahmoud Alfarra
 
البرمجة الهدفية بلغة جافا - مفاهيم أساسية
Mahmoud Alfarra
 
Chapter2 array of objects
Mahmoud Alfarra
 
البرمجة الهدفية بلغة جافا - مصفوفة الكائنات
Mahmoud Alfarra
 
البرمجة الهدفية بلغة جافا - تعدد الأشكال
Mahmoud Alfarra
 
Design final
Indu Sharma Bhardwaj
 
البرمجة الهدفية بلغة جافا - مقدمة
Mahmoud Alfarra
 
Lecture 17 design concepts (2)
IIUI
 
Oop Presentation
Ghaffar Khan
 
Chapter1 - Introduction to Object-Oriented Programming and Software Development
Eduardo Bergavera
 
‫Chapter3 inheritance
Mahmoud Alfarra
 
Procedural vs. object oriented programming
Haris Bin Zahid
 
Graphs data Structure
Mahmoud Alfarra
 
Document clustering and classification
Mahmoud Alfarra
 
Java Basics
shivamgarg_nitj
 
Introduction to oops concepts
Nilesh Dalvi
 
Introduction to Object-Oriented Programming & Design Principles (TCF 2014)
Michael Redlich
 
Computer Programming- Lecture 4
Dr. Md. Shohel Sayeed
 
Ad

Similar to Object Oriented Programming in Java _lecture 1 (20)

PPTX
Presentation c
Kunal Sharma
 
PPTX
OOPM - Introduction.pptx
amitabhaslideshare
 
PPTX
introduction of Object oriented programming
RiturajJain8
 
PPTX
OOP-1.pptx
iansebuabeh
 
PPTX
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
PPTX
yo.pptxoajsdisa odasjd asodjaojdoawjdoasjdow
l226207
 
PPTX
Concepts of Object Oriented Programming By Manju Ashish Buddhaghosh
abhinav baba
 
PDF
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
PPTX
Unit 1 OOSE
ChhayaShelake
 
PDF
2nd PUC computer science chapter 6 oop concept
Aahwini Esware gowda
 
PPTX
Object Oriented Programming intro Lecture 1.pptx
ssuser8d54ed
 
PPTX
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
PPTX
Object oriented programming (oops) python
TayyabaIrshad6
 
PPTX
Introduction to Object Oriented Programming Class IX
Ansh Sam
 
PPTX
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
Maharshi Dayanand University Rohtak
 
PDF
Procedural-vs-Object-Oriented-Programming (1).pdf
AnujMalviya12
 
PDF
C++ notes.pdf
RajanBagale3
 
PPTX
Std 12 computer chapter 6 object oriented concepts (part 1)
Nuzhat Memon
 
PPTX
Object Oriented Programming using C++.pptx
parveen837153
 
Presentation c
Kunal Sharma
 
OOPM - Introduction.pptx
amitabhaslideshare
 
introduction of Object oriented programming
RiturajJain8
 
OOP-1.pptx
iansebuabeh
 
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
yo.pptxoajsdisa odasjd asodjaojdoawjdoasjdow
l226207
 
Concepts of Object Oriented Programming By Manju Ashish Buddhaghosh
abhinav baba
 
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
Unit 1 OOSE
ChhayaShelake
 
2nd PUC computer science chapter 6 oop concept
Aahwini Esware gowda
 
Object Oriented Programming intro Lecture 1.pptx
ssuser8d54ed
 
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
Object oriented programming (oops) python
TayyabaIrshad6
 
Introduction to Object Oriented Programming Class IX
Ansh Sam
 
OBJECT ORIENTED PROGRAMMING CONCEPTS IN C++.pptx
Maharshi Dayanand University Rohtak
 
Procedural-vs-Object-Oriented-Programming (1).pdf
AnujMalviya12
 
C++ notes.pdf
RajanBagale3
 
Std 12 computer chapter 6 object oriented concepts (part 1)
Nuzhat Memon
 
Object Oriented Programming using C++.pptx
parveen837153
 
Ad

More from Mahmoud Alfarra (20)

PPT
Computer Programming, Loops using Java - part 2
Mahmoud Alfarra
 
PPT
Computer Programming, Loops using Java
Mahmoud Alfarra
 
PPT
Chapter 10: hashing data structure
Mahmoud Alfarra
 
PPT
Chapter9 graph data structure
Mahmoud Alfarra
 
PPT
Chapter 8: tree data structure
Mahmoud Alfarra
 
PPT
Chapter 7: Queue data structure
Mahmoud Alfarra
 
PPT
Chapter 6: stack data structure
Mahmoud Alfarra
 
PPT
Chapter 5: linked list data structure
Mahmoud Alfarra
 
PPT
Chapter 4: basic search algorithms data structure
Mahmoud Alfarra
 
PPT
Chapter 3: basic sorting algorithms data structure
Mahmoud Alfarra
 
PPT
Chapter 2: array and array list data structure
Mahmoud Alfarra
 
PPT
Chapter1 intro toprincipleofc#_datastructure_b_cs
Mahmoud Alfarra
 
PPT
Chapter 0: introduction to data structure
Mahmoud Alfarra
 
PPTX
3 classification
Mahmoud Alfarra
 
PPT
8 programming-using-java decision-making practices 20102011
Mahmoud Alfarra
 
PPT
7 programming-using-java decision-making220102011
Mahmoud Alfarra
 
PPT
6 programming-using-java decision-making20102011-
Mahmoud Alfarra
 
PPT
5 programming-using-java intro-tooop20102011
Mahmoud Alfarra
 
PPT
4 programming-using-java intro-tojava20102011
Mahmoud Alfarra
 
PPT
3 programming-using-java introduction-to computer
Mahmoud Alfarra
 
Computer Programming, Loops using Java - part 2
Mahmoud Alfarra
 
Computer Programming, Loops using Java
Mahmoud Alfarra
 
Chapter 10: hashing data structure
Mahmoud Alfarra
 
Chapter9 graph data structure
Mahmoud Alfarra
 
Chapter 8: tree data structure
Mahmoud Alfarra
 
Chapter 7: Queue data structure
Mahmoud Alfarra
 
Chapter 6: stack data structure
Mahmoud Alfarra
 
Chapter 5: linked list data structure
Mahmoud Alfarra
 
Chapter 4: basic search algorithms data structure
Mahmoud Alfarra
 
Chapter 3: basic sorting algorithms data structure
Mahmoud Alfarra
 
Chapter 2: array and array list data structure
Mahmoud Alfarra
 
Chapter1 intro toprincipleofc#_datastructure_b_cs
Mahmoud Alfarra
 
Chapter 0: introduction to data structure
Mahmoud Alfarra
 
3 classification
Mahmoud Alfarra
 
8 programming-using-java decision-making practices 20102011
Mahmoud Alfarra
 
7 programming-using-java decision-making220102011
Mahmoud Alfarra
 
6 programming-using-java decision-making20102011-
Mahmoud Alfarra
 
5 programming-using-java intro-tooop20102011
Mahmoud Alfarra
 
4 programming-using-java intro-tojava20102011
Mahmoud Alfarra
 
3 programming-using-java introduction-to computer
Mahmoud Alfarra
 

Recently uploaded (20)

PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PPTX
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PPTX
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
PDF
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
PPT
Indian Contract Act 1872, Business Law #MBA #BBA #BCOM
priyasinghy107
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
PDF
Workbook de Inglés Completo - English Path.pdf
shityouenglishpath
 
PDF
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PPTX
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
PDF
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
PPTX
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
PPTX
Difference between write and update in odoo 18
Celine George
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
infertility, types,causes, impact, and management
Ritu480198
 
How to Manage Allocation Report for Manufacturing Orders in Odoo 18
Celine George
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
Vani - The Voice of Excellence - Jul 2025 issue
Savipriya Raghavendra
 
Indian Contract Act 1872, Business Law #MBA #BBA #BCOM
priyasinghy107
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
Workbook de Inglés Completo - English Path.pdf
shityouenglishpath
 
Is Assignment Help Legal in Australia_.pdf
thomas19williams83
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
Difference between write and update in odoo 18
Celine George
 
Controller Request and Response in Odoo18
Celine George
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
CATEGORIES OF NURSING PERSONNEL: HOSPITAL & COLLEGE
PRADEEP ABOTHU
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 

Object Oriented Programming in Java _lecture 1

  • 1. Object Oriented Programming Chapter 1: Introduction to OOP Prepared by: Mahmoud Rafeek Alfarra 2016
  • 2. Salamo 3likom! I am Mahmoud R. Alfarra I am here because I love to give knowledge. Note: I have prepared this material Based on (Liang: “Introduction to Programming using Java”, 10’th edition, 2015)
  • 3. Outlines ◉ What is Object-Oriented Programming ? ◉ Procedural vs. Object-Oriented Programming ◉ OO Programming Concepts ◉ Concept of Objects and classes ◉ UML Class Diagram ◉ Visibility Modifiers and Accessor Methods ◉ Full Example
  • 4. ‫قال‬ ، ‫عنه‬ ‫اهلل‬ ‫رضي‬ ‫اخلطاب‬ ‫بن‬ ‫عمر‬ ‫عن‬:‫مسعت‬ ‫يقول‬ ‫وسلم‬ ‫عليه‬ ‫اهلل‬ ‫صلى‬ ‫اهلل‬ ‫رسول‬: (،‫نوى‬ ‫ما‬ ‫امريء‬ ‫لكل‬ ‫وإمنا‬ ، ‫ّات‬‫ي‬‫بالن‬ ‫األعمال‬ ‫إمنا‬ ‫إىل‬ ‫فهجرته‬ ، ‫ورسوله‬ ‫اهلل‬ ‫إىل‬ ‫هجرته‬ ‫كانت‬ ‫فمن‬ ‫أو‬ ، ‫يصيبها‬ ‫لدنيا‬ ‫هجرته‬ ‫كانت‬ ‫ومن‬ ، ‫ورسوله‬ ‫اهلل‬ ‫إليه‬ ‫هاجر‬ ‫ما‬ ‫إىل‬ ‫فهجرته‬ ، ‫ينكحها‬ ‫امرأة‬) ‫صحيحهما‬ ‫يف‬ ‫ومسلم‬ ‫البخاري‬ ‫رواه‬ ‫وال‬ ‫ستقيم‬ ‫ت‬ ‫وال‬ ‫لو‬ ‫حت‬ ‫ال‬ ‫ياة‬ ‫احل‬ ‫عاىل‬ ‫ت‬ ‫اهلل‬ ‫عة‬ ‫بطا‬ ‫إال‬ ‫سهل‬ ‫ت‬ ‫ليت‬ ‫ا‬ ‫خالق‬ ‫واأل‬ ‫باآلداب‬ ‫تأدب‬ ‫وال‬ ‫شريعته‬ ‫يف‬ ‫لنا‬ ‫وردت‬. ،،، ‫صح‬ ‫عيشها‬
  • 5. Lecture Let’s start with the first set of concepts 1
  • 6. Our Life is a set of Objects
  • 7. o To have a fine definition of OOP, Please note what you are showing in your class room now? What is OOP? Chairs Tables Teacher PCs . . # of legs Type of material Color . . .
  • 8. o Object-oriented programming (OOP) involves programming using objects. o An object represents an entity in the real world that can be distinctly identified. o For example, a student, a desk, a circle, a button, and even a loan can all be viewed as objects. o An object has a unique identity, state, and behaviors. What is OOP?
  • 9. o The unit in procedural programming is function. o Procedural programming concentrates on creating functions. o Procedural programming separates the data of the program from the operations that manipulate the data. Procedural vs. Object-Oriented Programming o The unit in object-oriented programming is class. o Object-oriented programming starts from isolating the classes, and then look for the methods inside them. o Object-oriented programming focus on both of them.
  • 11. o Abstraction is simplifying complex reality by modeling classes appropriate to the problem. o Abstraction is mechanism to show only relevant data to the user. o i.e: The client cares about what functionality a car offers, not about how that functionality is implemented. Abstraction
  • 12. o Encapsulation allows the programmer to group data and the methods that operate on them together in one place, and to hide details from the user. Encapsulation AccountValue Name Address Change Address withDraw any value
  • 13. o Encapsulation protects the integrity of an object's data. o Protects an object from unwanted access by clients.  A bank app forbids a client to change an Account's balance. o Allows you to change the class implementation. o Allows you to constrain objects' state Benefits of encapsulation
  • 15. o Inheritance: The ability of a new class to be created from an existing class by extending it. Inheritance Student Colleague BCs Diploma School Primary Secondary
  • 16. o Polymorphism enables us to "program in the general" rather than "program in the specific. Polymorphism
  • 17. Practices Group 1 Compare between the main concepts of OOP. Group 2 Detect 5 objects from our classroom Group 3 Diffrenciate between abstraction and encabsulation. Group 4 Diffrenciate between procedural and Object- Oriented Programming Group 5 Give us 3 examples for inheritance from your life. Group 6 Summerize the first lecture using 1 complext chart.
  • 18. THANKS! Any questions? You can find me at: Fb/mahmoudRAlfarra Staff.cst.ps/mfarra Youtube.com/mralfarra1 @mralfarra