SlideShare ist ein Scribd-Unternehmen logo
1 von 29
Concept of OOPS


Pre-Assessment Questions
1. Which languages use the procedural programming methodology?
    a. Pascal, Java
    b. FORTRAN, C
    c. C, Java
    d. Pascal, C
2. Which language uses the simple sequential programming methodology?
    a. C
    b. Java
    c. FORTRAN
    d. Pascal




 ©NIIT                  Java Fundamentals                Lesson 1B / Slide 1 of 29
Concept of OOPS


Pre-Assessment Questions (Contd.)
3. What is the acronym for OOP?
    a. Object Oriented Programming
    b. Object Orientation programming
    c. Object Oriented Program
    d. Object Oriented Procedure

4. The acronym for the procedural language COBOL is -----------------------------.
    a. Common Object Business Oriented Language
    b. COmmon Business Oriented Language
    c. Common Object Business Object Language
    d. Common Object Business Optimized Language




 ©NIIT                     Java Fundamentals                  Lesson 1B / Slide 2 of 29
Concept of OOPS


Pre-Assessment Questions (Contd.)
5. Which language is a Object Oriented Programming language?

e.   Basic
f.   COBOL
g.   Java
h.   C




 ©NIIT                   Java Fundamentals                Lesson 1B / Slide 3 of 29
Concept of OOPS


Solutions to Pre-Assessment
Questions
4.   d. Pascal, C
5.   c. FORTRAN
6.   a. Object Oriented Programming
7.   b. COmmon Business Oriented Language
8.   c. Java




 ©NIIT                  Java Fundamentals   Lesson 1B / Slide 4 of 29
Concept of OOPS


Objectives
    In this lesson, you will learn to:


         •   Identify the features of object-oriented programming
               • Encapsulation
               • Abstraction
               • Inheritance
               • Polymorphism




 ©NIIT                     Java Fundamentals                 Lesson 1B / Slide 5 of 29
Concept of OOPS


Features of Object-Oriented
Programming
    •    Encapsulation
           • Grady Booch, defined the encapsulation feature as:
             “Encapsulation is the process of hiding all of the details of an object that
             do not contribute to its essential characteristics.”
           • Encapsulation is the feature that provides security to the data as well as
             the methods of a class.




 ©NIIT                      Java Fundamentals                    Lesson 1B / Slide 6 of 29
Concept of OOPS


Features of Object-Oriented
Programming(Contd.)
    •    Abstraction
           • Grady Booch defined the encapsulation feature as:
             “An Abstraction denotes the essential characteristics of an object that
             distinguishes it from all other kinds of objects and thus provides crisply
             defined conceptual boundaries, relative to the perspective of the viewer.”
           • Abstraction refers to the attributes of an object that clearly demarcates it
             from other objects.
           • The concept of abstraction is implemented in object-oriented programming
             by creating classes.
    •    Encapsulation hides the irrelevant details of an object and abstraction makes
         only the relevant details of an object visible.




 ©NIIT                     Java Fundamentals                   Lesson 1B / Slide 7 of 29
Concept of OOPS


Features of Object-Oriented
Programming(Contd.)
    •    Inheritance:
           • Enables you to extend the functionality of an existing class.
           • Enables you to add new features and functionality to an existing class
             without modifying the existing class.
           • Enables you to share data and methods among multiple classes.




 ©NIIT                     Java Fundamentals                  Lesson 1B / Slide 8 of 29
Concept of OOPS


Features of Object-Oriented
Programming(Contd.)
         •   Superclass and Subclass
              • A superclass or parent class is the one from which another class
                inherits attributes and behavior.
              • A subclass or child class is a class that inherits attributes and
                behavior from a superclass.




 ©NIIT                    Java Fundamentals                  Lesson 1B / Slide 9 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)




 ©NIIT       Java Fundamentals   Lesson 1B / Slide 10 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Relationships Between Classes
               • Kind-of
               • Is-a
               • Part-of
               • Has-a




 ©NIIT                    Java Fundamentals   Lesson 1B / Slide 11 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Kind-of
                • A subclass always inherits the attributes of the superclass.




                      Confirmed                            Ticket
                        Ticket            Kind-of




 ©NIIT                Java Fundamentals                  Lesson 1B / Slide 12 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Kind-of (Contd.)
                • Washing machine is a kind of household commodity and depicts
                  the kind-of relationship.




 ©NIIT               Java Fundamentals               Lesson 1B / Slide 13 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Is-a Relationship
                • Relationship between objects of superclass and subclass is
                  referred to as an is-a relationship.


                                       Confirmed
                                         Ticket

                               Is-A                Kind of
                Ticket for                                       Ticket
                New York
                                           Is-A




 ©NIIT                 Java Fundamentals                     Lesson 1B / Slide 14 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Is-a Relationship (Contd.)
                • The is-a relationship between the Cleanwash class and Washing
                  Machine class.




 ©NIIT               Java Fundamentals                Lesson 1B / Slide 15 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Part-of Relationship
               • When a class is an element of another class, it depicts the part-
                  of relationship.




                  Address                              Student
                                          Part of




 ©NIIT                Java Fundamentals                 Lesson 1B / Slide 16 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Part-of Relationship (Contd.)
               • A spinner being a part of washing machine depicts the part-of
                  relationship between the spinner and the washing machine
                  class.




 ©NIIT               Java Fundamentals                 Lesson 1B / Slide 17 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Has-a Relationship
               • Is reverse of the part-of relationship.
               • The has-a relationship is also known as aggregation or
                 composition.


                  Student                Has-a     Address
                  Detail




 ©NIIT               Java Fundamentals                 Lesson 1B / Slide 18 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Has-a Relationship (Contd.)
               • A washing machine has a spinner and depicts the has-a
                 relationship between the Washing Machine and Color class.




 ©NIIT               Java Fundamentals                Lesson 1B / Slide 19 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Types of Inheritance




 ©NIIT               Java Fundamentals   Lesson 1B / Slide 20 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Types of Inheritance (Contd.)
               • Single inheritance
               • Multiple inheritance




 ©NIIT                Java Fundamentals      Lesson 1B / Slide 21 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Types of Inheritance(Contd.)
               • Single inheritance
                 Subclass is derived from only one superclass.




 ©NIIT               Java Fundamentals                Lesson 1B / Slide 22 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Types of Inheritance (Contd.)
               • Single inheritance




 ©NIIT                Java Fundamentals      Lesson 1B / Slide 23 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Types of Inheritance(Contd.)
               • Multiple inheritance
                 A subclass is derived from more than one super class.




 ©NIIT               Java Fundamentals                Lesson 1B / Slide 24 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
         •   Types of Inheritance (Contd.)
               • Multiple inheritance




 ©NIIT                Java Fundamentals      Lesson 1B / Slide 25 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
               •   Types of Inheritance (Contd.)
                     • Multiple inheritance




   Single
 Inheritance




                                                       Multiple
                                                     Inheritance



 ©NIIT                      Java Fundamentals      Lesson 1B / Slide 26 of 29
Concept of OOPS

Features of Object-Oriented
Programming(Contd.)
    •    Polymorphism
           • Derived from two Latin words-Poly, which means many, and morph, which
             means forms.




 ©NIIT                    Java Fundamentals              Lesson 1B / Slide 27 of 29
Concept of OOPS

Summary
    •    In this lesson, you learned:
           • Encapsulation- Hides the implementation details of an object and therefore
              hides its complexity.
           • Abstraction- Focuses on the essential features of an object.
           • Inheritance- Creates a hierarchy of classes and helps in reuse of attributes
              and methods of a class.
           • The relationship among the classes can be classified as:
                 • Kind-of
                 • Is-a
                 • Part-of
                 • Has-a
           • A superclass shares its attributes and behavior with its child classes.
           • A subclass inherits its attributes and behavior from parent classes.


 ©NIIT                     Java Fundamentals                  Lesson 1B / Slide 28 of 29
Concept of OOPS

Summary(Contd.)
         •   There are two types of inheritance:
                • Single inheritance- A class inherits attributes from only one
                   superclass.
                • Multiple inheritance- A class inherits attributes from two or more
                   superclasses.
         •   Polymorphism- Assigns a different meaning or usage to an entity in
             different contexts.




 ©NIIT                     Java Fundamentals                  Lesson 1B / Slide 29 of 29

Weitere ähnliche Inhalte

Andere mochten auch

C++ OOPS Concept
C++ OOPS ConceptC++ OOPS Concept
C++ OOPS ConceptBoopathi K
 
Java session05
Java session05Java session05
Java session05Niit Care
 
Jdbc session02
Jdbc session02Jdbc session02
Jdbc session02Niit Care
 
Java session02
Java session02Java session02
Java session02Niit Care
 
Java session11
Java session11Java session11
Java session11Niit Care
 
Vb.net session 09
Vb.net session 09Vb.net session 09
Vb.net session 09Niit Care
 
15 ooad uml-20
15 ooad uml-2015 ooad uml-20
15 ooad uml-20Niit Care
 
11 ds and algorithm session_16
11 ds and algorithm session_1611 ds and algorithm session_16
11 ds and algorithm session_16Niit Care
 
09 iec t1_s1_oo_ps_session_13
09 iec t1_s1_oo_ps_session_1309 iec t1_s1_oo_ps_session_13
09 iec t1_s1_oo_ps_session_13Niit Care
 
Java session08
Java session08Java session08
Java session08Niit Care
 
Authorisation latter2013 (1)
Authorisation latter2013 (1)Authorisation latter2013 (1)
Authorisation latter2013 (1)ali asif
 
Recruitment of trainees
Recruitment of traineesRecruitment of trainees
Recruitment of traineesSudha Sati
 
Cert class 1 what is news
Cert class 1 what is newsCert class 1 what is news
Cert class 1 what is newsShane Ruff
 
Основи цифрової техніки - лекція 6-7
Основи цифрової техніки - лекція 6-7Основи цифрової техніки - лекція 6-7
Основи цифрової техніки - лекція 6-7Marian Slabinoha
 

Andere mochten auch (20)

C++ OOPS Concept
C++ OOPS ConceptC++ OOPS Concept
C++ OOPS Concept
 
Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
Java session05
Java session05Java session05
Java session05
 
Jdbc session02
Jdbc session02Jdbc session02
Jdbc session02
 
Java session02
Java session02Java session02
Java session02
 
Java session11
Java session11Java session11
Java session11
 
 
Oops recap
Oops recapOops recap
Oops recap
 
Vb.net session 09
Vb.net session 09Vb.net session 09
Vb.net session 09
 
15 ooad uml-20
15 ooad uml-2015 ooad uml-20
15 ooad uml-20
 
Dacj 2-2 c
Dacj 2-2 cDacj 2-2 c
Dacj 2-2 c
 
11 ds and algorithm session_16
11 ds and algorithm session_1611 ds and algorithm session_16
11 ds and algorithm session_16
 
09 iec t1_s1_oo_ps_session_13
09 iec t1_s1_oo_ps_session_1309 iec t1_s1_oo_ps_session_13
09 iec t1_s1_oo_ps_session_13
 
Java session08
Java session08Java session08
Java session08
 
OOP Java
OOP JavaOOP Java
OOP Java
 
Authorisation latter2013 (1)
Authorisation latter2013 (1)Authorisation latter2013 (1)
Authorisation latter2013 (1)
 
Recruitment of trainees
Recruitment of traineesRecruitment of trainees
Recruitment of trainees
 
Kawasaki zx10 r
Kawasaki zx10 rKawasaki zx10 r
Kawasaki zx10 r
 
Cert class 1 what is news
Cert class 1 what is newsCert class 1 what is news
Cert class 1 what is news
 
Основи цифрової техніки - лекція 6-7
Основи цифрової техніки - лекція 6-7Основи цифрової техніки - лекція 6-7
Основи цифрової техніки - лекція 6-7
 

Ähnlich wie Dacj 1-1 b

Design Pattern lecture 1
Design Pattern lecture 1Design Pattern lecture 1
Design Pattern lecture 1Julie Iskander
 
Java Course 11: Design Patterns
Java Course 11: Design PatternsJava Course 11: Design Patterns
Java Course 11: Design PatternsAnton Keks
 
U1 JAVA.pptx
U1 JAVA.pptxU1 JAVA.pptx
U1 JAVA.pptxmadan r
 
Lesson 1 - Object Oriented Programming CPP103.pptx
Lesson 1 - Object Oriented Programming CPP103.pptxLesson 1 - Object Oriented Programming CPP103.pptx
Lesson 1 - Object Oriented Programming CPP103.pptxLuiFlor
 
object oriented programming examples
object oriented programming examplesobject oriented programming examples
object oriented programming examplesAbdii Rashid
 
Java object oriented programming concepts - Brainsmartlabs
Java object oriented programming concepts - BrainsmartlabsJava object oriented programming concepts - Brainsmartlabs
Java object oriented programming concepts - Brainsmartlabsbrainsmartlabsedu
 
Features of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptxFeatures of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptxSwagatoBiswas
 
Intro to iOS: Object Oriented Programming and Objective-C
Intro to iOS: Object Oriented Programming and Objective-CIntro to iOS: Object Oriented Programming and Objective-C
Intro to iOS: Object Oriented Programming and Objective-CAndrew Rohn
 
Object Oriented Programming All Unit Notes
Object Oriented Programming All Unit NotesObject Oriented Programming All Unit Notes
Object Oriented Programming All Unit NotesBalamuruganV28
 
Vb.net session 03
Vb.net session 03Vb.net session 03
Vb.net session 03Niit Care
 
The View object orientated programming in Lotuscript
The View object orientated programming in LotuscriptThe View object orientated programming in Lotuscript
The View object orientated programming in LotuscriptBill Buchan
 
What are some key topics and concepts that candidates are commonly expected t...
What are some key topics and concepts that candidates are commonly expected t...What are some key topics and concepts that candidates are commonly expected t...
What are some key topics and concepts that candidates are commonly expected t...DivyanshWsCube
 

Ähnlich wie Dacj 1-1 b (20)

Dacj 1-1 a
Dacj 1-1 aDacj 1-1 a
Dacj 1-1 a
 
Design Pattern lecture 1
Design Pattern lecture 1Design Pattern lecture 1
Design Pattern lecture 1
 
Oop lec 2
Oop lec 2Oop lec 2
Oop lec 2
 
Java Course 11: Design Patterns
Java Course 11: Design PatternsJava Course 11: Design Patterns
Java Course 11: Design Patterns
 
U1 JAVA.pptx
U1 JAVA.pptxU1 JAVA.pptx
U1 JAVA.pptx
 
Lesson 1 - Object Oriented Programming CPP103.pptx
Lesson 1 - Object Oriented Programming CPP103.pptxLesson 1 - Object Oriented Programming CPP103.pptx
Lesson 1 - Object Oriented Programming CPP103.pptx
 
object oriented programming examples
object oriented programming examplesobject oriented programming examples
object oriented programming examples
 
Oops
OopsOops
Oops
 
Basic of Java
Basic of JavaBasic of Java
Basic of Java
 
Java object oriented programming concepts - Brainsmartlabs
Java object oriented programming concepts - BrainsmartlabsJava object oriented programming concepts - Brainsmartlabs
Java object oriented programming concepts - Brainsmartlabs
 
Oop Article Jan 08
Oop Article Jan 08Oop Article Jan 08
Oop Article Jan 08
 
Oop.pptx
Oop.pptxOop.pptx
Oop.pptx
 
Features of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptxFeatures of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptx
 
oop Lecture 7
oop Lecture 7oop Lecture 7
oop Lecture 7
 
Intro to iOS: Object Oriented Programming and Objective-C
Intro to iOS: Object Oriented Programming and Objective-CIntro to iOS: Object Oriented Programming and Objective-C
Intro to iOS: Object Oriented Programming and Objective-C
 
Object Oriented Programming All Unit Notes
Object Oriented Programming All Unit NotesObject Oriented Programming All Unit Notes
Object Oriented Programming All Unit Notes
 
Vb.net session 03
Vb.net session 03Vb.net session 03
Vb.net session 03
 
0-oop java-intro
0-oop java-intro0-oop java-intro
0-oop java-intro
 
The View object orientated programming in Lotuscript
The View object orientated programming in LotuscriptThe View object orientated programming in Lotuscript
The View object orientated programming in Lotuscript
 
What are some key topics and concepts that candidates are commonly expected t...
What are some key topics and concepts that candidates are commonly expected t...What are some key topics and concepts that candidates are commonly expected t...
What are some key topics and concepts that candidates are commonly expected t...
 

Mehr von Niit Care (20)

Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
 
Dacj 1-3 b
Dacj 1-3 bDacj 1-3 b
Dacj 1-3 b
 
Dacj 1-3 a
Dacj 1-3 aDacj 1-3 a
Dacj 1-3 a
 

Kürzlich hochgeladen

Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 

Kürzlich hochgeladen (20)

Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 

Dacj 1-1 b

  • 1. Concept of OOPS Pre-Assessment Questions 1. Which languages use the procedural programming methodology? a. Pascal, Java b. FORTRAN, C c. C, Java d. Pascal, C 2. Which language uses the simple sequential programming methodology? a. C b. Java c. FORTRAN d. Pascal ©NIIT Java Fundamentals Lesson 1B / Slide 1 of 29
  • 2. Concept of OOPS Pre-Assessment Questions (Contd.) 3. What is the acronym for OOP? a. Object Oriented Programming b. Object Orientation programming c. Object Oriented Program d. Object Oriented Procedure 4. The acronym for the procedural language COBOL is -----------------------------. a. Common Object Business Oriented Language b. COmmon Business Oriented Language c. Common Object Business Object Language d. Common Object Business Optimized Language ©NIIT Java Fundamentals Lesson 1B / Slide 2 of 29
  • 3. Concept of OOPS Pre-Assessment Questions (Contd.) 5. Which language is a Object Oriented Programming language? e. Basic f. COBOL g. Java h. C ©NIIT Java Fundamentals Lesson 1B / Slide 3 of 29
  • 4. Concept of OOPS Solutions to Pre-Assessment Questions 4. d. Pascal, C 5. c. FORTRAN 6. a. Object Oriented Programming 7. b. COmmon Business Oriented Language 8. c. Java ©NIIT Java Fundamentals Lesson 1B / Slide 4 of 29
  • 5. Concept of OOPS Objectives In this lesson, you will learn to: • Identify the features of object-oriented programming • Encapsulation • Abstraction • Inheritance • Polymorphism ©NIIT Java Fundamentals Lesson 1B / Slide 5 of 29
  • 6. Concept of OOPS Features of Object-Oriented Programming • Encapsulation • Grady Booch, defined the encapsulation feature as: “Encapsulation is the process of hiding all of the details of an object that do not contribute to its essential characteristics.” • Encapsulation is the feature that provides security to the data as well as the methods of a class. ©NIIT Java Fundamentals Lesson 1B / Slide 6 of 29
  • 7. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Abstraction • Grady Booch defined the encapsulation feature as: “An Abstraction denotes the essential characteristics of an object that distinguishes it from all other kinds of objects and thus provides crisply defined conceptual boundaries, relative to the perspective of the viewer.” • Abstraction refers to the attributes of an object that clearly demarcates it from other objects. • The concept of abstraction is implemented in object-oriented programming by creating classes. • Encapsulation hides the irrelevant details of an object and abstraction makes only the relevant details of an object visible. ©NIIT Java Fundamentals Lesson 1B / Slide 7 of 29
  • 8. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Inheritance: • Enables you to extend the functionality of an existing class. • Enables you to add new features and functionality to an existing class without modifying the existing class. • Enables you to share data and methods among multiple classes. ©NIIT Java Fundamentals Lesson 1B / Slide 8 of 29
  • 9. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Superclass and Subclass • A superclass or parent class is the one from which another class inherits attributes and behavior. • A subclass or child class is a class that inherits attributes and behavior from a superclass. ©NIIT Java Fundamentals Lesson 1B / Slide 9 of 29
  • 10. Concept of OOPS Features of Object-Oriented Programming(Contd.) ©NIIT Java Fundamentals Lesson 1B / Slide 10 of 29
  • 11. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Relationships Between Classes • Kind-of • Is-a • Part-of • Has-a ©NIIT Java Fundamentals Lesson 1B / Slide 11 of 29
  • 12. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Kind-of • A subclass always inherits the attributes of the superclass. Confirmed Ticket Ticket Kind-of ©NIIT Java Fundamentals Lesson 1B / Slide 12 of 29
  • 13. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Kind-of (Contd.) • Washing machine is a kind of household commodity and depicts the kind-of relationship. ©NIIT Java Fundamentals Lesson 1B / Slide 13 of 29
  • 14. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Is-a Relationship • Relationship between objects of superclass and subclass is referred to as an is-a relationship. Confirmed Ticket Is-A Kind of Ticket for Ticket New York Is-A ©NIIT Java Fundamentals Lesson 1B / Slide 14 of 29
  • 15. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Is-a Relationship (Contd.) • The is-a relationship between the Cleanwash class and Washing Machine class. ©NIIT Java Fundamentals Lesson 1B / Slide 15 of 29
  • 16. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Part-of Relationship • When a class is an element of another class, it depicts the part- of relationship. Address Student Part of ©NIIT Java Fundamentals Lesson 1B / Slide 16 of 29
  • 17. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Part-of Relationship (Contd.) • A spinner being a part of washing machine depicts the part-of relationship between the spinner and the washing machine class. ©NIIT Java Fundamentals Lesson 1B / Slide 17 of 29
  • 18. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Has-a Relationship • Is reverse of the part-of relationship. • The has-a relationship is also known as aggregation or composition. Student Has-a Address Detail ©NIIT Java Fundamentals Lesson 1B / Slide 18 of 29
  • 19. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Has-a Relationship (Contd.) • A washing machine has a spinner and depicts the has-a relationship between the Washing Machine and Color class. ©NIIT Java Fundamentals Lesson 1B / Slide 19 of 29
  • 20. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Types of Inheritance ©NIIT Java Fundamentals Lesson 1B / Slide 20 of 29
  • 21. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Types of Inheritance (Contd.) • Single inheritance • Multiple inheritance ©NIIT Java Fundamentals Lesson 1B / Slide 21 of 29
  • 22. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Types of Inheritance(Contd.) • Single inheritance Subclass is derived from only one superclass. ©NIIT Java Fundamentals Lesson 1B / Slide 22 of 29
  • 23. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Types of Inheritance (Contd.) • Single inheritance ©NIIT Java Fundamentals Lesson 1B / Slide 23 of 29
  • 24. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Types of Inheritance(Contd.) • Multiple inheritance A subclass is derived from more than one super class. ©NIIT Java Fundamentals Lesson 1B / Slide 24 of 29
  • 25. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Types of Inheritance (Contd.) • Multiple inheritance ©NIIT Java Fundamentals Lesson 1B / Slide 25 of 29
  • 26. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Types of Inheritance (Contd.) • Multiple inheritance Single Inheritance Multiple Inheritance ©NIIT Java Fundamentals Lesson 1B / Slide 26 of 29
  • 27. Concept of OOPS Features of Object-Oriented Programming(Contd.) • Polymorphism • Derived from two Latin words-Poly, which means many, and morph, which means forms. ©NIIT Java Fundamentals Lesson 1B / Slide 27 of 29
  • 28. Concept of OOPS Summary • In this lesson, you learned: • Encapsulation- Hides the implementation details of an object and therefore hides its complexity. • Abstraction- Focuses on the essential features of an object. • Inheritance- Creates a hierarchy of classes and helps in reuse of attributes and methods of a class. • The relationship among the classes can be classified as: • Kind-of • Is-a • Part-of • Has-a • A superclass shares its attributes and behavior with its child classes. • A subclass inherits its attributes and behavior from parent classes. ©NIIT Java Fundamentals Lesson 1B / Slide 28 of 29
  • 29. Concept of OOPS Summary(Contd.) • There are two types of inheritance: • Single inheritance- A class inherits attributes from only one superclass. • Multiple inheritance- A class inherits attributes from two or more superclasses. • Polymorphism- Assigns a different meaning or usage to an entity in different contexts. ©NIIT Java Fundamentals Lesson 1B / Slide 29 of 29