SlideShare una empresa de Scribd logo
1 de 13
Introduction to Object-Oriented Programming


Objectives
    In this lesson, you will learn to:


         •   Appreciate the need for object-oriented programming
         •   Compare OOPS with procedural programming
         •   Identify the advantages of object-oriented programming
         •   Identify the applications of object-oriented programming
         •   Identify classes and objects




 ©NIIT                     Java Fundamentals                 Lesson 1A / Slide 1 of 13
Introduction to Object-Oriented Programming


Need for Object-Oriented
Programming
    •    Comparing OOPS with Procedural Programming
          • The commonly used programming methodologies are:
              • Procedural programming
              • Object-oriented programming (OOP)




 ©NIIT                   Java Fundamentals             Lesson 1A / Slide 2 of 13
Introduction to Object-Oriented Programming


Need for Object-Oriented
Programming(Contd.)
         •   Procedural programming
               • Involves dividing a large program into a set of subprocedures or
                  subprograms that perform specific tasks.
               • Module consists of single or multiple procedures.
               • Procedures are also known as functions, routines, subroutines, or
                  methods in various programming languages.
               • In a program following procedural methodology, each step of a
                  subprogram is linked to the previous step.




 ©NIIT                    Java Fundamentals                  Lesson 1A / Slide 3 of 13
Introduction to Object-Oriented Programming


Need for Object-Oriented
Programming(Contd.)




 ©NIIT        Java Fundamentals   Lesson 1A / Slide 4 of 13
Introduction to Object-Oriented Programming


Need for Object-Oriented
Programming(Contd.)
         •   Procedural programming is used for developing simple applications.
         •   The procedural programming methodology has various benefits over
             the simple sequential programming:
               • Easy to read program code.
               • Easy maintainable program code as various procedures can be
                  debugged in isolation.”
               • Code is more flexible as you can change a specific procedure
                  that gets implemented across the program.




 ©NIIT               Java Fundamentals                 Lesson 1A / Slide 5 of 13
Introduction to Object-Oriented Programming


Need for Object-Oriented
Programming(Contd.)
         •   The features of procedural programming methodology are:
               • Large programs are divided into smaller programs.
               • Most of the data is shared as global that can be accessed from
                  anywhere within the program.




 ©NIIT               Java Fundamentals                  Lesson 1A / Slide 6 of 13
Introduction to Object-Oriented Programming


Need for Object-Oriented
Programming(Contd.)
         •   Object-oriented Programming :
               • A large application consists of component objects, which interact
                 with each other.
               • Can be used to develop various applications.




 ©NIIT                Java Fundamentals                 Lesson 1A / Slide 7 of 13
Introduction to Object-Oriented Programming


Object-Oriented Programming
    •    Advantages of Object-Oriented Programming:
          • Real-world programming
          • Reusability of code
          • Modularity of code
          • Resilience to change
          • Information hiding




 ©NIIT                    Java Fundamentals           Lesson 1A / Slide 8 of 13
Introduction to Object-Oriented Programming

Object-Oriented Programming
         •   Real-world programming
                • The object-oriented approach models the real world more accurately
                   than the conventional, procedural approach.
         •   Reusability of code
                • In the object-oriented approach, you build classes, which can be used
                   by several applications.
         •   Modularity of code
                • An object can be maintained independently of other objects.
         •   Resilience to change
                • Object-oriented programming also enables you to evolve various
                   versions of software.
                • When a change is suggested, the old system need not be completely
                   abandoned and re-built from scratch.
         •   Information hiding
                • Information hiding ensures data security in a program.
 ©NIIT                     Java Fundamentals                 Lesson 1A / Slide 9 of 13
Introduction to Object-Oriented Programming

Object-Oriented Programming(Contd.)

    •  Identifying the Applications of Object-Oriented Programming:
         • Character User Interface (CUI) based Applications
              • CUI is an interface used to interact with a computer by typing
                 commands on the command-line.
              • CUI is not user-friendly because a user needs to remember all the
                 commands and the syntax of the commands.
         • C++ for GUI applications
              • Enables you to create GUI applications.
         • Graphical User Interface (GUI) based Applications
              • GUI is a method of interacting with a computer by directly
                 manipulating graphical images in addition to text.
         • Computer Aided Designing/Manufacturing (CAD/CAM)
              • Concept of OOP is used to create graphical and numerical building
                 blocks that can be assembled to form portable, flexible, and cost
 ©NIIT           effective solutions for various real life problems. 1A / Slide 10 of 13
                           Java Fundamentals                    Lesson
Introduction to Object-Oriented Programming

Object-Oriented Programming(Contd.)

         •   Games
               • All the adventure games, sports games, and the space games are
                 modeling some type of objects present in the real world.
               • You can organize a game into a collection of "things,” when you apply
                 OOP techniques to the design.




 ©NIIT                    Java Fundamentals                 Lesson 1A / Slide 11 of 13
Introduction to Object-Oriented Programming

Object-Oriented Programming(Contd.)

    •    Classes and Objects
           • Objects are the basic building blocks of Object Oriented Programming
             (OOP).
           • Characteristics of Objects are:
                • State
                • Behavior
                • Identity




 ©NIIT                   Java Fundamentals              Lesson 1A / Slide 12 of 13
Introduction to Object-Oriented Programming

Summary
In this lesson, you learned:
           • An object is a software package consisting of variables and methods.
           • Various programming methodologies that can be used are:
                 • Procedural programming
                 • Object-oriented programming.
           • The procedural programming methodology involves dividing a large
              program into a set of subprocedures or subprograms that perform specific
              tasks.
           • The procedural programming methodology allows code reusability in large
              applications.
           • An object is defined as an instance of a class.
           • In the object-oriented approach, classes are designed such that they can
              be reused.
           • The areas of application of the object-oriented programming include CUI,
              GUI, Games, and CAD/CAM-based programs.
           • Object oriented programming offers features such as Reusability,
              Resilience, Modularity, and Information hiding.
 ©NIIT                    Java Fundamentals                 Lesson 1A / Slide 13 of 13

Más contenido relacionado

Destacado

Jdbc session01
Jdbc session01Jdbc session01
Jdbc session01Niit Care
 
14 ooad uml-19
14 ooad uml-1914 ooad uml-19
14 ooad uml-19Niit Care
 
Deawsj 7 ppt-2_c
Deawsj 7 ppt-2_cDeawsj 7 ppt-2_c
Deawsj 7 ppt-2_cNiit Care
 
Java Garbage Collection - How it works
Java Garbage Collection - How it worksJava Garbage Collection - How it works
Java Garbage Collection - How it worksMindfire Solutions
 
Understanding Java Garbage Collection - And What You Can Do About It
Understanding Java Garbage Collection - And What You Can Do About ItUnderstanding Java Garbage Collection - And What You Can Do About It
Understanding Java Garbage Collection - And What You Can Do About ItAzul Systems Inc.
 
Aae oop xp_06
Aae oop xp_06Aae oop xp_06
Aae oop xp_06Niit Care
 
JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)Prof. Erwin Globio
 
Chapter 21 c language
Chapter 21 c languageChapter 21 c language
Chapter 21 c languageHareem Aslam
 
Java OOP Programming language (Part 3) - Class and Object
Java OOP Programming language (Part 3) - Class and ObjectJava OOP Programming language (Part 3) - Class and Object
Java OOP Programming language (Part 3) - Class and ObjectOUM SAOKOSAL
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Michelle Anne Meralpis
 
GUI Programming In Java
GUI Programming In JavaGUI Programming In Java
GUI Programming In Javayht4ever
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaCPD INDIA
 

Destacado (19)

OOP Java
OOP JavaOOP Java
OOP Java
 
Jdbc session01
Jdbc session01Jdbc session01
Jdbc session01
 
Rdbms xp 01
Rdbms xp 01Rdbms xp 01
Rdbms xp 01
 
14 ooad uml-19
14 ooad uml-1914 ooad uml-19
14 ooad uml-19
 
Deawsj 7 ppt-2_c
Deawsj 7 ppt-2_cDeawsj 7 ppt-2_c
Deawsj 7 ppt-2_c
 
Java Garbage Collection - How it works
Java Garbage Collection - How it worksJava Garbage Collection - How it works
Java Garbage Collection - How it works
 
Ds 8
Ds 8Ds 8
Ds 8
 
Understanding Java Garbage Collection - And What You Can Do About It
Understanding Java Garbage Collection - And What You Can Do About ItUnderstanding Java Garbage Collection - And What You Can Do About It
Understanding Java Garbage Collection - And What You Can Do About It
 
Aae oop xp_06
Aae oop xp_06Aae oop xp_06
Aae oop xp_06
 
JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)JAVA Object Oriented Programming (OOP)
JAVA Object Oriented Programming (OOP)
 
Chapter 21 c language
Chapter 21 c languageChapter 21 c language
Chapter 21 c language
 
Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
 
Dacj 1-1 b
Dacj 1-1 bDacj 1-1 b
Dacj 1-1 b
 
Java OOP Programming language (Part 3) - Class and Object
Java OOP Programming language (Part 3) - Class and ObjectJava OOP Programming language (Part 3) - Class and Object
Java OOP Programming language (Part 3) - Class and Object
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)
 
Crj 3 1-b
Crj 3 1-bCrj 3 1-b
Crj 3 1-b
 
Introduction to-programming
Introduction to-programmingIntroduction to-programming
Introduction to-programming
 
GUI Programming In Java
GUI Programming In JavaGUI Programming In Java
GUI Programming In Java
 
oops concept in java | object oriented programming in java
oops concept in java | object oriented programming in javaoops concept in java | object oriented programming in java
oops concept in java | object oriented programming in java
 

Similar a Dacj 1-1 a

Java v/s .NET - Which is Better?
Java v/s .NET - Which is Better?Java v/s .NET - Which is Better?
Java v/s .NET - Which is Better?NIIT India
 
16613874-Object-Oriented-Programming-Presentation.ppt
16613874-Object-Oriented-Programming-Presentation.ppt16613874-Object-Oriented-Programming-Presentation.ppt
16613874-Object-Oriented-Programming-Presentation.pptvsdfg
 
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
 
Vb.net session 01
Vb.net session 01Vb.net session 01
Vb.net session 01Niit Care
 
Untitled document - Google Docs.pdf
Untitled document - Google Docs.pdfUntitled document - Google Docs.pdf
Untitled document - Google Docs.pdfPreeti shakya
 
itft-Fundamentals of object–oriented programming in java
itft-Fundamentals of object–oriented programming in javaitft-Fundamentals of object–oriented programming in java
itft-Fundamentals of object–oriented programming in javaAtul Sehdev
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java ProgrammingRavi Kant Sahu
 
Unit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptxUnit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptxshashiden1
 
Aspect Oriented Programming
Aspect Oriented ProgrammingAspect Oriented Programming
Aspect Oriented ProgrammingAnumod Kumar
 
Adv & disadv of oo ps
Adv & disadv of oo psAdv & disadv of oo ps
Adv & disadv of oo psvijay gupta
 
JAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptJAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptAliyaJav
 
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.pptsagarjsicg
 

Similar a Dacj 1-1 a (20)

OOP-1.pptx
OOP-1.pptxOOP-1.pptx
OOP-1.pptx
 
Java v/s .NET - Which is Better?
Java v/s .NET - Which is Better?Java v/s .NET - Which is Better?
Java v/s .NET - Which is Better?
 
16613874-Object-Oriented-Programming-Presentation.ppt
16613874-Object-Oriented-Programming-Presentation.ppt16613874-Object-Oriented-Programming-Presentation.ppt
16613874-Object-Oriented-Programming-Presentation.ppt
 
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
 
Oop.pptx
Oop.pptxOop.pptx
Oop.pptx
 
Ch1
Ch1Ch1
Ch1
 
object oriented programming examples
object oriented programming examplesobject oriented programming examples
object oriented programming examples
 
[OOP - Lec 03] Programming Paradigms
[OOP - Lec 03] Programming Paradigms[OOP - Lec 03] Programming Paradigms
[OOP - Lec 03] Programming Paradigms
 
Vb.net session 01
Vb.net session 01Vb.net session 01
Vb.net session 01
 
Untitled document - Google Docs.pdf
Untitled document - Google Docs.pdfUntitled document - Google Docs.pdf
Untitled document - Google Docs.pdf
 
itft-Fundamentals of object–oriented programming in java
itft-Fundamentals of object–oriented programming in javaitft-Fundamentals of object–oriented programming in java
itft-Fundamentals of object–oriented programming in java
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
 
Unit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptxUnit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptx
 
Lecture No.1.pptx
Lecture No.1.pptxLecture No.1.pptx
Lecture No.1.pptx
 
Software Engineering 2014
Software Engineering 2014Software Engineering 2014
Software Engineering 2014
 
Aspect Oriented Programming
Aspect Oriented ProgrammingAspect Oriented Programming
Aspect Oriented Programming
 
Adv & disadv of oo ps
Adv & disadv of oo psAdv & disadv of oo ps
Adv & disadv of oo ps
 
JAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptJAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).ppt
 
Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
1. OBJECT ORIENTED PROGRAMMING USING JAVA - OOps Concepts.ppt
 

Más de 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
 

Último

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 

Último (20)

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 

Dacj 1-1 a

  • 1. Introduction to Object-Oriented Programming Objectives In this lesson, you will learn to: • Appreciate the need for object-oriented programming • Compare OOPS with procedural programming • Identify the advantages of object-oriented programming • Identify the applications of object-oriented programming • Identify classes and objects ©NIIT Java Fundamentals Lesson 1A / Slide 1 of 13
  • 2. Introduction to Object-Oriented Programming Need for Object-Oriented Programming • Comparing OOPS with Procedural Programming • The commonly used programming methodologies are: • Procedural programming • Object-oriented programming (OOP) ©NIIT Java Fundamentals Lesson 1A / Slide 2 of 13
  • 3. Introduction to Object-Oriented Programming Need for Object-Oriented Programming(Contd.) • Procedural programming • Involves dividing a large program into a set of subprocedures or subprograms that perform specific tasks. • Module consists of single or multiple procedures. • Procedures are also known as functions, routines, subroutines, or methods in various programming languages. • In a program following procedural methodology, each step of a subprogram is linked to the previous step. ©NIIT Java Fundamentals Lesson 1A / Slide 3 of 13
  • 4. Introduction to Object-Oriented Programming Need for Object-Oriented Programming(Contd.) ©NIIT Java Fundamentals Lesson 1A / Slide 4 of 13
  • 5. Introduction to Object-Oriented Programming Need for Object-Oriented Programming(Contd.) • Procedural programming is used for developing simple applications. • The procedural programming methodology has various benefits over the simple sequential programming: • Easy to read program code. • Easy maintainable program code as various procedures can be debugged in isolation.” • Code is more flexible as you can change a specific procedure that gets implemented across the program. ©NIIT Java Fundamentals Lesson 1A / Slide 5 of 13
  • 6. Introduction to Object-Oriented Programming Need for Object-Oriented Programming(Contd.) • The features of procedural programming methodology are: • Large programs are divided into smaller programs. • Most of the data is shared as global that can be accessed from anywhere within the program. ©NIIT Java Fundamentals Lesson 1A / Slide 6 of 13
  • 7. Introduction to Object-Oriented Programming Need for Object-Oriented Programming(Contd.) • Object-oriented Programming : • A large application consists of component objects, which interact with each other. • Can be used to develop various applications. ©NIIT Java Fundamentals Lesson 1A / Slide 7 of 13
  • 8. Introduction to Object-Oriented Programming Object-Oriented Programming • Advantages of Object-Oriented Programming: • Real-world programming • Reusability of code • Modularity of code • Resilience to change • Information hiding ©NIIT Java Fundamentals Lesson 1A / Slide 8 of 13
  • 9. Introduction to Object-Oriented Programming Object-Oriented Programming • Real-world programming • The object-oriented approach models the real world more accurately than the conventional, procedural approach. • Reusability of code • In the object-oriented approach, you build classes, which can be used by several applications. • Modularity of code • An object can be maintained independently of other objects. • Resilience to change • Object-oriented programming also enables you to evolve various versions of software. • When a change is suggested, the old system need not be completely abandoned and re-built from scratch. • Information hiding • Information hiding ensures data security in a program. ©NIIT Java Fundamentals Lesson 1A / Slide 9 of 13
  • 10. Introduction to Object-Oriented Programming Object-Oriented Programming(Contd.) • Identifying the Applications of Object-Oriented Programming: • Character User Interface (CUI) based Applications • CUI is an interface used to interact with a computer by typing commands on the command-line. • CUI is not user-friendly because a user needs to remember all the commands and the syntax of the commands. • C++ for GUI applications • Enables you to create GUI applications. • Graphical User Interface (GUI) based Applications • GUI is a method of interacting with a computer by directly manipulating graphical images in addition to text. • Computer Aided Designing/Manufacturing (CAD/CAM) • Concept of OOP is used to create graphical and numerical building blocks that can be assembled to form portable, flexible, and cost ©NIIT effective solutions for various real life problems. 1A / Slide 10 of 13 Java Fundamentals Lesson
  • 11. Introduction to Object-Oriented Programming Object-Oriented Programming(Contd.) • Games • All the adventure games, sports games, and the space games are modeling some type of objects present in the real world. • You can organize a game into a collection of "things,” when you apply OOP techniques to the design. ©NIIT Java Fundamentals Lesson 1A / Slide 11 of 13
  • 12. Introduction to Object-Oriented Programming Object-Oriented Programming(Contd.) • Classes and Objects • Objects are the basic building blocks of Object Oriented Programming (OOP). • Characteristics of Objects are: • State • Behavior • Identity ©NIIT Java Fundamentals Lesson 1A / Slide 12 of 13
  • 13. Introduction to Object-Oriented Programming Summary In this lesson, you learned: • An object is a software package consisting of variables and methods. • Various programming methodologies that can be used are: • Procedural programming • Object-oriented programming. • The procedural programming methodology involves dividing a large program into a set of subprocedures or subprograms that perform specific tasks. • The procedural programming methodology allows code reusability in large applications. • An object is defined as an instance of a class. • In the object-oriented approach, classes are designed such that they can be reused. • The areas of application of the object-oriented programming include CUI, GUI, Games, and CAD/CAM-based programs. • Object oriented programming offers features such as Reusability, Resilience, Modularity, and Information hiding. ©NIIT Java Fundamentals Lesson 1A / Slide 13 of 13