SlideShare a Scribd company logo
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

More Related Content

Viewers also liked

OOP Java
OOP JavaOOP Java
OOP Java
Saif Kassim
 
Jdbc session01
Jdbc session01Jdbc session01
Jdbc session01
Niit Care
 
Rdbms xp 01
Rdbms xp 01Rdbms xp 01
Rdbms xp 01
Niit Care
 
14 ooad uml-19
14 ooad uml-1914 ooad uml-19
14 ooad uml-19
Niit Care
 
Deawsj 7 ppt-2_c
Deawsj 7 ppt-2_cDeawsj 7 ppt-2_c
Deawsj 7 ppt-2_c
Niit Care
 
Java Garbage Collection - How it works
Java Garbage Collection - How it worksJava Garbage Collection - How it works
Java Garbage Collection - How it works
Mindfire Solutions
 
Ds 8
Ds 8Ds 8
Ds 8
Niit Care
 
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
Azul Systems Inc.
 
Aae oop xp_06
Aae oop xp_06Aae oop xp_06
Aae oop xp_06
Niit 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 language
Hareem Aslam
 
Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
Niit Care
 
Dacj 1-1 b
Dacj 1-1 bDacj 1-1 b
Dacj 1-1 b
Niit Care
 
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
OUM 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
 
Crj 3 1-b
Crj 3 1-bCrj 3 1-b
Crj 3 1-b
Niit Care
 
Introduction to-programming
Introduction to-programmingIntroduction to-programming
Introduction to-programming
BG Java EE Course
 
GUI Programming In Java
GUI Programming In JavaGUI Programming In Java
GUI Programming In Java
yht4ever
 
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
CPD INDIA
 

Viewers also liked (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 to Dacj 1-1 a

OOP-1.pptx
OOP-1.pptxOOP-1.pptx
OOP-1.pptx
iansebuabeh
 
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.ppt
vsdfg
 
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
LuiFlor
 
Oop.pptx
Oop.pptxOop.pptx
Oop.pptx
KalGetachew2
 
Ch1
Ch1Ch1
object oriented programming examples
object oriented programming examplesobject oriented programming examples
object oriented programming examples
Abdii Rashid
 
[OOP - Lec 03] Programming Paradigms
[OOP - Lec 03] Programming Paradigms[OOP - Lec 03] Programming Paradigms
[OOP - Lec 03] Programming Paradigms
Muhammad Hammad Waseem
 
Vb.net session 01
Vb.net session 01Vb.net session 01
Vb.net session 01
Niit Care
 
Untitled document - Google Docs.pdf
Untitled document - Google Docs.pdfUntitled document - Google Docs.pdf
Untitled document - Google Docs.pdf
Preeti 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 java
Atul Sehdev
 
Introduction to Java Programming
Introduction to Java ProgrammingIntroduction to Java Programming
Introduction to Java Programming
Ravi Kant Sahu
 
Unit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptxUnit 1 introduction to c++.pptx
Unit 1 introduction to c++.pptx
shashiden1
 
Lecture No.1.pptx
Lecture No.1.pptxLecture No.1.pptx
Lecture No.1.pptx
anzazubair91
 
Software Engineering 2014
Software Engineering 2014Software Engineering 2014
Software Engineering 2014
Shuichi Kurabayashi
 
Aspect Oriented Programming
Aspect Oriented ProgrammingAspect Oriented Programming
Aspect Oriented Programming
Anumod Kumar
 
Adv & disadv of oo ps
Adv & disadv of oo psAdv & disadv of oo ps
Adv & disadv of oo ps
vijay gupta
 
JAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptJAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).ppt
AliyaJav
 
Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
Niit Care
 
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
sagarjsicg
 

Similar to 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
 

More from Niit Care

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

More from 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
 

Recently uploaded

5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
Pablo Gómez Abajo
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
A Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's ArchitectureA Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's Architecture
ScyllaDB
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Pitangent Analytics & Technology Solutions Pvt. Ltd
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
Ivo Velitchkov
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
Safe Software
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
christinelarrosa
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
saastr
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
Fwdays
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
Mydbops
 

Recently uploaded (20)

5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
A Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's ArchitectureA Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's Architecture
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
 
Apps Break Data
Apps Break DataApps Break Data
Apps Break Data
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
Must Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during MigrationMust Know Postgres Extension for DBA and Developer during Migration
Must Know Postgres Extension for DBA and Developer during Migration
 

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