SlideShare a Scribd company logo
Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan
1 | P a g e
Chapter-6
BASIC CONCEPT OF OOP
 Introduction:
 Object oriented programming is the principle of design and development of programs using
modular approach.
 Object oriented programming approach provides advantages in creation and development of
software for real life application.
 The basic element of object oriented programming is the data.
 The programs are built by combining data and functions that operate on the data.
 Some of the OOP’s languages are C++, Java, C #, Smalltalk, Perl, and Python.
 Procedural programming:
 The procedural programming focuses on processing of
instructions in order to perform a desired computation.
Therefore it emphasizes more on doing things like algorithms.
 This programming is lengthy, increases the complexity of
program, difficult to understand and modify the program.
 This technique is used in a conventional programming language such as C and Pascal.
 Structured programming:
 An organized approach to programming involving
the use of three basic control structures – Sequence,
Conditional and loop.
 The top-down concepts to decompose main
functions into lower level components for modular coding purpose.
 The major drawback is that it is very difficult to model the real world scenario using this model.
 Object oriented programming:
 Object oriented programming (OOP) is a concept
that combines both the data and the functions that
operate on that data into a single unit called the
object.
 An object is a collection of set of data known as
Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan
1 | P a g e
Chapter-6
BASIC CONCEPT OF OOP
 Introduction:
 Object oriented programming is the principle of design and development of programs using
modular approach.
 Object oriented programming approach provides advantages in creation and development of
software for real life application.
 The basic element of object oriented programming is the data.
 The programs are built by combining data and functions that operate on the data.
 Some of the OOP’s languages are C++, Java, C #, Smalltalk, Perl, and Python.
 Procedural programming:
 The procedural programming focuses on processing of
instructions in order to perform a desired computation.
Therefore it emphasizes more on doing things like algorithms.
 This programming is lengthy, increases the complexity of
program, difficult to understand and modify the program.
 This technique is used in a conventional programming language such as C and Pascal.
 Structured programming:
 An organized approach to programming involving
the use of three basic control structures – Sequence,
Conditional and loop.
 The top-down concepts to decompose main
functions into lower level components for modular coding purpose.
 The major drawback is that it is very difficult to model the real world scenario using this model.
 Object oriented programming:
 Object oriented programming (OOP) is a concept
that combines both the data and the functions that
operate on that data into a single unit called the
object.
 An object is a collection of set of data known as
Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan
1 | P a g e
Chapter-6
BASIC CONCEPT OF OOP
 Introduction:
 Object oriented programming is the principle of design and development of programs using
modular approach.
 Object oriented programming approach provides advantages in creation and development of
software for real life application.
 The basic element of object oriented programming is the data.
 The programs are built by combining data and functions that operate on the data.
 Some of the OOP’s languages are C++, Java, C #, Smalltalk, Perl, and Python.
 Procedural programming:
 The procedural programming focuses on processing of
instructions in order to perform a desired computation.
Therefore it emphasizes more on doing things like algorithms.
 This programming is lengthy, increases the complexity of
program, difficult to understand and modify the program.
 This technique is used in a conventional programming language such as C and Pascal.
 Structured programming:
 An organized approach to programming involving
the use of three basic control structures – Sequence,
Conditional and loop.
 The top-down concepts to decompose main
functions into lower level components for modular coding purpose.
 The major drawback is that it is very difficult to model the real world scenario using this model.
 Object oriented programming:
 Object oriented programming (OOP) is a concept
that combines both the data and the functions that
operate on that data into a single unit called the
object.
 An object is a collection of set of data known as
Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan
2 | P a g e
member data and the functions that operate on these data known as member function.
 OOP follows bottom-up design technique.
 Class is the major concept that plays important role in this approach. Class is a template that
represents a group of objects which share common properties and relationships.
 Difference between Procedural Programming & Object Oriented
programming:
Procedural Programming Object Oriented Programming
Large programs are divided into smaller
programs known as functions
Programs are divided into objects
Data is not hidden and can be accessed by
external functions
Data is hidden and cannot be accessed by
external functions
Follow top down approach in the program
design
Follows bottom-up approach in the
program design
Data may communicate with each other
through functions
Objects may communicate with each other
through functions.
Emphasize is on procedure rather than
data
Emphasize is on data rather than
procedure
 Basic Concepts of OOP’s:
The following are the major characteristics of OOP’s:
 Objects
 Class
 Data abstraction
 Data encapsulation
 Inheritance
 Overloading
 Polymorphism
 Dynamic Binding
 Message Passing
Important
Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan
2 | P a g e
member data and the functions that operate on these data known as member function.
 OOP follows bottom-up design technique.
 Class is the major concept that plays important role in this approach. Class is a template that
represents a group of objects which share common properties and relationships.
 Difference between Procedural Programming & Object Oriented
programming:
Procedural Programming Object Oriented Programming
Large programs are divided into smaller
programs known as functions
Programs are divided into objects
Data is not hidden and can be accessed by
external functions
Data is hidden and cannot be accessed by
external functions
Follow top down approach in the program
design
Follows bottom-up approach in the
program design
Data may communicate with each other
through functions
Objects may communicate with each other
through functions.
Emphasize is on procedure rather than
data
Emphasize is on data rather than
procedure
 Basic Concepts of OOP’s:
The following are the major characteristics of OOP’s:
 Objects
 Class
 Data abstraction
 Data encapsulation
 Inheritance
 Overloading
 Polymorphism
 Dynamic Binding
 Message Passing
Important
Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan
2 | P a g e
member data and the functions that operate on these data known as member function.
 OOP follows bottom-up design technique.
 Class is the major concept that plays important role in this approach. Class is a template that
represents a group of objects which share common properties and relationships.
 Difference between Procedural Programming & Object Oriented
programming:
Procedural Programming Object Oriented Programming
Large programs are divided into smaller
programs known as functions
Programs are divided into objects
Data is not hidden and can be accessed by
external functions
Data is hidden and cannot be accessed by
external functions
Follow top down approach in the program
design
Follows bottom-up approach in the
program design
Data may communicate with each other
through functions
Objects may communicate with each other
through functions.
Emphasize is on procedure rather than
data
Emphasize is on data rather than
procedure
 Basic Concepts of OOP’s:
The following are the major characteristics of OOP’s:
 Objects
 Class
 Data abstraction
 Data encapsulation
 Inheritance
 Overloading
 Polymorphism
 Dynamic Binding
 Message Passing
Important
Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan
3 | P a g e
 Objects
 Objects are basic building blocks for designing programs.
 An object is a collection of data members and associated member functions.
 An object may represent a person, place or a table of data.
 Each object is identified by a unique name. Each object must be a member of a particular class.
 Example: Apple, orange, mango are the objects of class fruit.
 Objects take up space in memory and have address associated with them.
 At the time of execution of a program, the objects interact by sending the messages to one another.
 The objects can interact with one another without having to know details of data or functions
within an object.
 Classes:
 The objects can be made user defined data types with the help of a class.
 A class is a collection of objects that have identical properties, common
behavior and shared relationship.
 Once class is defined, any number of objects of that class is created.
 Classes are user defined data types. A class can hold both data and
functions.
 For example: Planets, sun, moon are member of class solar system.
 Data Abstraction:
 Data Abstraction refers to the process of representing essential features without including
background details or explanations.
 Data Encapsulation:
 The wrapping of data and functions into a single unit (class) is called
data encapsulation.
 Data encapsulation enables data hiding and information hiding.
Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan
3 | P a g e
 Objects
 Objects are basic building blocks for designing programs.
 An object is a collection of data members and associated member functions.
 An object may represent a person, place or a table of data.
 Each object is identified by a unique name. Each object must be a member of a particular class.
 Example: Apple, orange, mango are the objects of class fruit.
 Objects take up space in memory and have address associated with them.
 At the time of execution of a program, the objects interact by sending the messages to one another.
 The objects can interact with one another without having to know details of data or functions
within an object.
 Classes:
 The objects can be made user defined data types with the help of a class.
 A class is a collection of objects that have identical properties, common
behavior and shared relationship.
 Once class is defined, any number of objects of that class is created.
 Classes are user defined data types. A class can hold both data and
functions.
 For example: Planets, sun, moon are member of class solar system.
 Data Abstraction:
 Data Abstraction refers to the process of representing essential features without including
background details or explanations.
 Data Encapsulation:
 The wrapping of data and functions into a single unit (class) is called
data encapsulation.
 Data encapsulation enables data hiding and information hiding.
Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan
3 | P a g e
 Objects
 Objects are basic building blocks for designing programs.
 An object is a collection of data members and associated member functions.
 An object may represent a person, place or a table of data.
 Each object is identified by a unique name. Each object must be a member of a particular class.
 Example: Apple, orange, mango are the objects of class fruit.
 Objects take up space in memory and have address associated with them.
 At the time of execution of a program, the objects interact by sending the messages to one another.
 The objects can interact with one another without having to know details of data or functions
within an object.
 Classes:
 The objects can be made user defined data types with the help of a class.
 A class is a collection of objects that have identical properties, common
behavior and shared relationship.
 Once class is defined, any number of objects of that class is created.
 Classes are user defined data types. A class can hold both data and
functions.
 For example: Planets, sun, moon are member of class solar system.
 Data Abstraction:
 Data Abstraction refers to the process of representing essential features without including
background details or explanations.
 Data Encapsulation:
 The wrapping of data and functions into a single unit (class) is called
data encapsulation.
 Data encapsulation enables data hiding and information hiding.
Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan
4 | P a g e
 Data hiding is a method used in object oriented programming to hide information within computer
code.
 Inheritance:
 Inheritance is the process by which one object can
acquire and use the properties of another object.
 The existing class is known as base class or super
class.
 The new class is known as derived class or sub class.
 The derived class shares some of the properties of the base class. Therefore a code from a base
class can be reused by a derived class.
 Overloading:
 Overloading allows objects to have different meaning depending upon context.
 There are two types of overloading viz.
o Operator Overloading
o Function Overloading
 When an existing operator operates on new data type is called operator overloading.
 Function overloading means two or more function have same, but differ in the number of
arguments or data type of arguments.
 Polymorphism:
 The ability of an operator and function to take
multiple forms is known as Polymorphism.
 The different types of polymorphism are operator
overloading and function overloading.
 Dynamic binding:
 Binding is the process of connecting one program to another.
 Dynamic binding is the process of linking the procedure call to a specific sequence of code or
function at run time or during the execution of the program.
 Message Passing:
 In OOP’s, processing is done by sending message to objects.
 A message for an object is request for execution of procedure.
Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan
5 | P a g e
 Message passing involves specifying the name of the object, the name of the function (message)
and the information to be sent.
 Advantage of OOP’s
 The programs are modularized based on the principles of classes and objects.
 Linking code & object allows related objects to share common code. This reduces code
duplication and code reusability.
 Creation and implementation of OOP code is easy and reduces software development time.
 The concept of data abstraction separates object specification and object implementation.
 Data encapsulated along with functions. Therefore external non-member function cannot access or
modify data, thus proving data security.
 Easier to develop complex software, because complexity can be minimized through inheritance.
 OOP can communicate through message passing which makes interface description with
outside system very simple.
 Disadvantage of OOP’s
 Larger program size: OOP’s typically involves more lines of code than procedural programs.
 Slower Programs: OOP’s typically slower than procedure based programs, as they typically
require more instructions to be executed.
 Not suitable for all types of programs.
 To convert a real world problem into an object oriented model is difficult.
 OOP’s software development, debugging and testing tools are not standardized.
 Polymorphism and dynamic binding also requires processing time, due to overload of function
calls during run time.
 Application of OOP’s
 Computer graphics applications.
 .CAD/CAM software
 Object-oriented database.
 User-Interface design such as windows
 Real-time systems.
 Simulation and Modeling
 Artificial intelligence and expert systems.
 Client-Server Systems.
Important
Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan
6 | P a g e
CHAPTER 6 – Basic Concept of OOP’s BLUE PRINT
VSA (1 marks) SA (2 marks) LA (3 Marks) Essay (5 Marks) Total
- 01 Question - 01 Question 02 Question
- Question No 13 Question No 30 07 Marks
Important Questions
2 Marks Question:
1. Explain: Classes, Objects, Data Abstraction, Data Encapsulation, Inheritance, and
Polymorphism.
2. What is Base class and derived class?
5 Marks Question:
1. Distinguish between procedural and object oriented programming.
2. Explain the characteristics of OOP’s.
3. Briefly explain the basic concepts of OOP’s.
4. Explain the advantages of OOP’s.
5. Mention disadvantages of OOP’s.
6. Write the applications of OOP’s.
Ad

More Related Content

What's hot (20)

Pure virtual function and abstract class
Pure virtual function and abstract classPure virtual function and abstract class
Pure virtual function and abstract class
Amit Trivedi
 
Java Notes
Java NotesJava Notes
Java Notes
Abhishek Khune
 
JAVA PPT Part-1 BY ADI.pdf
JAVA PPT Part-1 BY ADI.pdfJAVA PPT Part-1 BY ADI.pdf
JAVA PPT Part-1 BY ADI.pdf
Prof. Dr. K. Adisesha
 
Super and final in java
Super and final in javaSuper and final in java
Super and final in java
anshu_atri
 
Android share preferences
Android share preferencesAndroid share preferences
Android share preferences
Ajay Panchal
 
Oop Presentation
Oop PresentationOop Presentation
Oop Presentation
Ghaffar Khan
 
Fundamentals of JAVA
Fundamentals of JAVAFundamentals of JAVA
Fundamentals of JAVA
KUNAL GADHIA
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
Ahmed Za'anin
 
Threads in JAVA
Threads in JAVAThreads in JAVA
Threads in JAVA
Haldia Institute of Technology
 
Methods in Java
Methods in JavaMethods in Java
Methods in Java
Jussi Pohjolainen
 
Polymorphism in oop
Polymorphism in oopPolymorphism in oop
Polymorphism in oop
MustafaIbrahimy
 
Exception handling in Java
Exception handling in JavaException handling in Java
Exception handling in Java
Ankit Rai
 
Java package
Java packageJava package
Java package
CS_GDRCST
 
Access modifiers in java
Access modifiers in javaAccess modifiers in java
Access modifiers in java
Madishetty Prathibha
 
Java and its features
Java and its featuresJava and its features
Java and its features
Pydi Nikhil
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming language
Md.Al-imran Roton
 
[OOP - Lec 08] Encapsulation (Information Hiding)
[OOP - Lec 08] Encapsulation (Information Hiding)[OOP - Lec 08] Encapsulation (Information Hiding)
[OOP - Lec 08] Encapsulation (Information Hiding)
Muhammad Hammad Waseem
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
thinkphp
 
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
Edureka!
 
Java annotations
Java annotationsJava annotations
Java annotations
FAROOK Samath
 
Pure virtual function and abstract class
Pure virtual function and abstract classPure virtual function and abstract class
Pure virtual function and abstract class
Amit Trivedi
 
Super and final in java
Super and final in javaSuper and final in java
Super and final in java
anshu_atri
 
Android share preferences
Android share preferencesAndroid share preferences
Android share preferences
Ajay Panchal
 
Fundamentals of JAVA
Fundamentals of JAVAFundamentals of JAVA
Fundamentals of JAVA
KUNAL GADHIA
 
Exception handling in Java
Exception handling in JavaException handling in Java
Exception handling in Java
Ankit Rai
 
Java package
Java packageJava package
Java package
CS_GDRCST
 
Java and its features
Java and its featuresJava and its features
Java and its features
Pydi Nikhil
 
OOP Introduction with java programming language
OOP Introduction with java programming languageOOP Introduction with java programming language
OOP Introduction with java programming language
Md.Al-imran Roton
 
[OOP - Lec 08] Encapsulation (Information Hiding)
[OOP - Lec 08] Encapsulation (Information Hiding)[OOP - Lec 08] Encapsulation (Information Hiding)
[OOP - Lec 08] Encapsulation (Information Hiding)
Muhammad Hammad Waseem
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
thinkphp
 
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
Edureka!
 

Similar to chapter-6-oops.pdf (20)

C++ notes.pdf
C++ notes.pdfC++ notes.pdf
C++ notes.pdf
RajanBagale3
 
OOP ppt.pdf
OOP ppt.pdfOOP ppt.pdf
OOP ppt.pdf
ArpitaJana28
 
Basic concept of OOP's
Basic concept of OOP'sBasic concept of OOP's
Basic concept of OOP's
Prof. Dr. K. Adisesha
 
Oop basic overview
Oop basic overviewOop basic overview
Oop basic overview
Deborah Akuoko
 
Birasa 1
Birasa 1Birasa 1
Birasa 1
Niyitegekabilly
 
JAVA PROGRAMMING
JAVA PROGRAMMING JAVA PROGRAMMING
JAVA PROGRAMMING
Niyitegekabilly
 
Introduction to object oriented language
Introduction to object oriented languageIntroduction to object oriented language
Introduction to object oriented language
farhan amjad
 
OOPS_Unit_1
OOPS_Unit_1OOPS_Unit_1
OOPS_Unit_1
Shipra Swati
 
JAVA PROGRAMMINGD
JAVA PROGRAMMINGDJAVA PROGRAMMINGD
JAVA PROGRAMMINGD
Niyitegekabilly
 
Object Oriented programming - Introduction
Object Oriented programming - IntroductionObject Oriented programming - Introduction
Object Oriented programming - Introduction
Madishetty Prathibha
 
Object Oriented Programming intro Lecture 1.pptx
Object Oriented Programming intro Lecture 1.pptxObject Oriented Programming intro Lecture 1.pptx
Object Oriented Programming intro Lecture 1.pptx
ssuser8d54ed
 
Abhiram
AbhiramAbhiram
Abhiram
Abhiram Sadhu
 
OOP-1.pptx
OOP-1.pptxOOP-1.pptx
OOP-1.pptx
iansebuabeh
 
Programming In C++
Programming In C++ Programming In C++
Programming In C++
shammi mehra
 
OOP.pptx
OOP.pptxOOP.pptx
OOP.pptx
kalyanibedekar
 
Object Oriented Programming using C++.pptx
Object Oriented Programming using C++.pptxObject Oriented Programming using C++.pptx
Object Oriented Programming using C++.pptx
parveen837153
 
Introduction to Object Oriented Programming.pptx
Introduction to Object Oriented Programming.pptxIntroduction to Object Oriented Programming.pptx
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
PCCF UNIT 2.pptx
PCCF UNIT 2.pptxPCCF UNIT 2.pptx
PCCF UNIT 2.pptx
DivyaKS12
 
Comparison of OOP with Procedural and Functional Programming
Comparison of OOP with Procedural and Functional ProgrammingComparison of OOP with Procedural and Functional Programming
Comparison of OOP with Procedural and Functional Programming
infoguestbloging
 
Oop in c++ lecture 1
Oop in c++  lecture 1Oop in c++  lecture 1
Oop in c++ lecture 1
zk75977
 
Introduction to object oriented language
Introduction to object oriented languageIntroduction to object oriented language
Introduction to object oriented language
farhan amjad
 
Object Oriented programming - Introduction
Object Oriented programming - IntroductionObject Oriented programming - Introduction
Object Oriented programming - Introduction
Madishetty Prathibha
 
Object Oriented Programming intro Lecture 1.pptx
Object Oriented Programming intro Lecture 1.pptxObject Oriented Programming intro Lecture 1.pptx
Object Oriented Programming intro Lecture 1.pptx
ssuser8d54ed
 
Programming In C++
Programming In C++ Programming In C++
Programming In C++
shammi mehra
 
Object Oriented Programming using C++.pptx
Object Oriented Programming using C++.pptxObject Oriented Programming using C++.pptx
Object Oriented Programming using C++.pptx
parveen837153
 
Introduction to Object Oriented Programming.pptx
Introduction to Object Oriented Programming.pptxIntroduction to Object Oriented Programming.pptx
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
PCCF UNIT 2.pptx
PCCF UNIT 2.pptxPCCF UNIT 2.pptx
PCCF UNIT 2.pptx
DivyaKS12
 
Comparison of OOP with Procedural and Functional Programming
Comparison of OOP with Procedural and Functional ProgrammingComparison of OOP with Procedural and Functional Programming
Comparison of OOP with Procedural and Functional Programming
infoguestbloging
 
Oop in c++ lecture 1
Oop in c++  lecture 1Oop in c++  lecture 1
Oop in c++ lecture 1
zk75977
 
Ad

More from study material (20)

II PUC Reduced syllabus(NCERT ADOPTED SUBJECTS).pdf
II PUC Reduced syllabus(NCERT ADOPTED SUBJECTS).pdfII PUC Reduced syllabus(NCERT ADOPTED SUBJECTS).pdf
II PUC Reduced syllabus(NCERT ADOPTED SUBJECTS).pdf
study material
 
12th English Notes.pdf
12th English Notes.pdf12th English Notes.pdf
12th English Notes.pdf
study material
 
Organic_Chemistry_Named_Reaction_inDetail_by_Meritnation.pdf
Organic_Chemistry_Named_Reaction_inDetail_by_Meritnation.pdfOrganic_Chemistry_Named_Reaction_inDetail_by_Meritnation.pdf
Organic_Chemistry_Named_Reaction_inDetail_by_Meritnation.pdf
study material
 
chem MCQ.pdf
chem MCQ.pdfchem MCQ.pdf
chem MCQ.pdf
study material
 
pue alcholn ethers.pdf
pue alcholn ethers.pdfpue alcholn ethers.pdf
pue alcholn ethers.pdf
study material
 
2023 Physics New Pattern
2023 Physics New Pattern 2023 Physics New Pattern
2023 Physics New Pattern
study material
 
PHY PUC 2 Notes-Electromagnetic waves
PHY PUC 2 Notes-Electromagnetic wavesPHY PUC 2 Notes-Electromagnetic waves
PHY PUC 2 Notes-Electromagnetic waves
study material
 
PHY PUC 2 Notes-Alternating current
PHY PUC 2 Notes-Alternating currentPHY PUC 2 Notes-Alternating current
PHY PUC 2 Notes-Alternating current
study material
 
PHY PUC 2 Notes Electromagnetic induction
PHY PUC 2 Notes Electromagnetic inductionPHY PUC 2 Notes Electromagnetic induction
PHY PUC 2 Notes Electromagnetic induction
study material
 
PHY PUC 2 NOTES:- MAGNETISM AND MATTER
PHY PUC 2 NOTES:- MAGNETISM AND MATTERPHY PUC 2 NOTES:- MAGNETISM AND MATTER
PHY PUC 2 NOTES:- MAGNETISM AND MATTER
study material
 
PHY PUC 2 MOVING CHARGE AND MAGNETISM
PHY PUC 2 MOVING CHARGE AND MAGNETISMPHY PUC 2 MOVING CHARGE AND MAGNETISM
PHY PUC 2 MOVING CHARGE AND MAGNETISM
study material
 
PHY CURRENT ELECTRICITY PUC 2 Notes
PHY  CURRENT ELECTRICITY PUC 2 NotesPHY  CURRENT ELECTRICITY PUC 2 Notes
PHY CURRENT ELECTRICITY PUC 2 Notes
study material
 
physics El.potential & capacitance notes
physics El.potential & capacitance notesphysics El.potential & capacitance notes
physics El.potential & capacitance notes
study material
 
important question of current electricity
important question of current electricityimportant question of current electricity
important question of current electricity
study material
 
09.Ray optics.pdf
09.Ray optics.pdf09.Ray optics.pdf
09.Ray optics.pdf
study material
 
01 Electric Fieeld and charges Notes.pdf
01 Electric Fieeld and charges Notes.pdf01 Electric Fieeld and charges Notes.pdf
01 Electric Fieeld and charges Notes.pdf
study material
 
chapter-4-data-structure.pdf
chapter-4-data-structure.pdfchapter-4-data-structure.pdf
chapter-4-data-structure.pdf
study material
 
chapter-14-sql-commands.pdf
chapter-14-sql-commands.pdfchapter-14-sql-commands.pdf
chapter-14-sql-commands.pdf
study material
 
chapter-16-internet-and-open-source-concepts.pdf
chapter-16-internet-and-open-source-concepts.pdfchapter-16-internet-and-open-source-concepts.pdf
chapter-16-internet-and-open-source-concepts.pdf
study material
 
chapter-17-web-designing2.pdf
chapter-17-web-designing2.pdfchapter-17-web-designing2.pdf
chapter-17-web-designing2.pdf
study material
 
II PUC Reduced syllabus(NCERT ADOPTED SUBJECTS).pdf
II PUC Reduced syllabus(NCERT ADOPTED SUBJECTS).pdfII PUC Reduced syllabus(NCERT ADOPTED SUBJECTS).pdf
II PUC Reduced syllabus(NCERT ADOPTED SUBJECTS).pdf
study material
 
12th English Notes.pdf
12th English Notes.pdf12th English Notes.pdf
12th English Notes.pdf
study material
 
Organic_Chemistry_Named_Reaction_inDetail_by_Meritnation.pdf
Organic_Chemistry_Named_Reaction_inDetail_by_Meritnation.pdfOrganic_Chemistry_Named_Reaction_inDetail_by_Meritnation.pdf
Organic_Chemistry_Named_Reaction_inDetail_by_Meritnation.pdf
study material
 
pue alcholn ethers.pdf
pue alcholn ethers.pdfpue alcholn ethers.pdf
pue alcholn ethers.pdf
study material
 
2023 Physics New Pattern
2023 Physics New Pattern 2023 Physics New Pattern
2023 Physics New Pattern
study material
 
PHY PUC 2 Notes-Electromagnetic waves
PHY PUC 2 Notes-Electromagnetic wavesPHY PUC 2 Notes-Electromagnetic waves
PHY PUC 2 Notes-Electromagnetic waves
study material
 
PHY PUC 2 Notes-Alternating current
PHY PUC 2 Notes-Alternating currentPHY PUC 2 Notes-Alternating current
PHY PUC 2 Notes-Alternating current
study material
 
PHY PUC 2 Notes Electromagnetic induction
PHY PUC 2 Notes Electromagnetic inductionPHY PUC 2 Notes Electromagnetic induction
PHY PUC 2 Notes Electromagnetic induction
study material
 
PHY PUC 2 NOTES:- MAGNETISM AND MATTER
PHY PUC 2 NOTES:- MAGNETISM AND MATTERPHY PUC 2 NOTES:- MAGNETISM AND MATTER
PHY PUC 2 NOTES:- MAGNETISM AND MATTER
study material
 
PHY PUC 2 MOVING CHARGE AND MAGNETISM
PHY PUC 2 MOVING CHARGE AND MAGNETISMPHY PUC 2 MOVING CHARGE AND MAGNETISM
PHY PUC 2 MOVING CHARGE AND MAGNETISM
study material
 
PHY CURRENT ELECTRICITY PUC 2 Notes
PHY  CURRENT ELECTRICITY PUC 2 NotesPHY  CURRENT ELECTRICITY PUC 2 Notes
PHY CURRENT ELECTRICITY PUC 2 Notes
study material
 
physics El.potential & capacitance notes
physics El.potential & capacitance notesphysics El.potential & capacitance notes
physics El.potential & capacitance notes
study material
 
important question of current electricity
important question of current electricityimportant question of current electricity
important question of current electricity
study material
 
01 Electric Fieeld and charges Notes.pdf
01 Electric Fieeld and charges Notes.pdf01 Electric Fieeld and charges Notes.pdf
01 Electric Fieeld and charges Notes.pdf
study material
 
chapter-4-data-structure.pdf
chapter-4-data-structure.pdfchapter-4-data-structure.pdf
chapter-4-data-structure.pdf
study material
 
chapter-14-sql-commands.pdf
chapter-14-sql-commands.pdfchapter-14-sql-commands.pdf
chapter-14-sql-commands.pdf
study material
 
chapter-16-internet-and-open-source-concepts.pdf
chapter-16-internet-and-open-source-concepts.pdfchapter-16-internet-and-open-source-concepts.pdf
chapter-16-internet-and-open-source-concepts.pdf
study material
 
chapter-17-web-designing2.pdf
chapter-17-web-designing2.pdfchapter-17-web-designing2.pdf
chapter-17-web-designing2.pdf
study material
 
Ad

Recently uploaded (20)

whole ANATOMY OF EYE with eye ball .pptx
whole ANATOMY OF EYE with eye ball .pptxwhole ANATOMY OF EYE with eye ball .pptx
whole ANATOMY OF EYE with eye ball .pptx
simranjangra13
 
Zoonosis, Types, Causes. A comprehensive pptx
Zoonosis, Types, Causes. A comprehensive pptxZoonosis, Types, Causes. A comprehensive pptx
Zoonosis, Types, Causes. A comprehensive pptx
Dr Showkat Ahmad Wani
 
2025 Insilicogen Company Korean Brochure
2025 Insilicogen Company Korean Brochure2025 Insilicogen Company Korean Brochure
2025 Insilicogen Company Korean Brochure
Insilico Gen
 
Effect of nutrition in Entomophagous Insectson
Effect of nutrition in Entomophagous InsectsonEffect of nutrition in Entomophagous Insectson
Effect of nutrition in Entomophagous Insectson
JabaskumarKshetri
 
2025 Insilicogen Company English Brochure
2025 Insilicogen Company English Brochure2025 Insilicogen Company English Brochure
2025 Insilicogen Company English Brochure
Insilico Gen
 
Botany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdf
Botany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdfBotany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdf
Botany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdf
JseleBurgos
 
Gender Bias and Empathy in Robots: Insights into Robotic Service Failures
Gender Bias and Empathy in Robots:  Insights into Robotic Service FailuresGender Bias and Empathy in Robots:  Insights into Robotic Service Failures
Gender Bias and Empathy in Robots: Insights into Robotic Service Failures
Selcen Ozturkcan
 
Examining Visual Attention in Gaze-Driven VR Learning: An Eye-Tracking Study ...
Examining Visual Attention in Gaze-Driven VR Learning: An Eye-Tracking Study ...Examining Visual Attention in Gaze-Driven VR Learning: An Eye-Tracking Study ...
Examining Visual Attention in Gaze-Driven VR Learning: An Eye-Tracking Study ...
Yasasi Abeysinghe
 
SuperconductingMagneticEnergyStorage.pptx
SuperconductingMagneticEnergyStorage.pptxSuperconductingMagneticEnergyStorage.pptx
SuperconductingMagneticEnergyStorage.pptx
BurkanAlpKale
 
DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...
DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...
DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...
home
 
Preparation of Permanent mounts of Parasitic Protozoans.pptx
Preparation of Permanent mounts of Parasitic Protozoans.pptxPreparation of Permanent mounts of Parasitic Protozoans.pptx
Preparation of Permanent mounts of Parasitic Protozoans.pptx
Dr Showkat Ahmad Wani
 
Water analysis practical for ph, tds, hardness, acidity, conductivity, and ba...
Water analysis practical for ph, tds, hardness, acidity, conductivity, and ba...Water analysis practical for ph, tds, hardness, acidity, conductivity, and ba...
Water analysis practical for ph, tds, hardness, acidity, conductivity, and ba...
ss0077014
 
Infrastructure for Tracking Information Flow from Social Media to U.S. TV New...
Infrastructure for Tracking Information Flow from Social Media to U.S. TV New...Infrastructure for Tracking Information Flow from Social Media to U.S. TV New...
Infrastructure for Tracking Information Flow from Social Media to U.S. TV New...
Himarsha Jayanetti
 
4. Chapter 4 - FINAL Promoting Inclusive Culture (2).pdf
4. Chapter 4 - FINAL Promoting Inclusive Culture (2).pdf4. Chapter 4 - FINAL Promoting Inclusive Culture (2).pdf
4. Chapter 4 - FINAL Promoting Inclusive Culture (2).pdf
abayamargaug
 
Skin function_protective_absorptive_Presentatation.pptx
Skin function_protective_absorptive_Presentatation.pptxSkin function_protective_absorptive_Presentatation.pptx
Skin function_protective_absorptive_Presentatation.pptx
muralinath2
 
biochemistry amino acid from chemistry to life machinery
biochemistry amino acid from chemistry to life machinerybiochemistry amino acid from chemistry to life machinery
biochemistry amino acid from chemistry to life machinery
chaitanyaa4444
 
Multydisciplinary Nature of Environmental Studies
Multydisciplinary Nature of Environmental StudiesMultydisciplinary Nature of Environmental Studies
Multydisciplinary Nature of Environmental Studies
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Skin_Glands_Structure_Secretion _Control
Skin_Glands_Structure_Secretion _ControlSkin_Glands_Structure_Secretion _Control
Skin_Glands_Structure_Secretion _Control
muralinath2
 
Polytene chromosomes. A Practical Lecture.pptx
Polytene chromosomes. A Practical Lecture.pptxPolytene chromosomes. A Practical Lecture.pptx
Polytene chromosomes. A Practical Lecture.pptx
Dr Showkat Ahmad Wani
 
Keynote presentation at DeepTest Workshop 2025
Keynote presentation at DeepTest Workshop 2025Keynote presentation at DeepTest Workshop 2025
Keynote presentation at DeepTest Workshop 2025
Shiva Nejati
 
whole ANATOMY OF EYE with eye ball .pptx
whole ANATOMY OF EYE with eye ball .pptxwhole ANATOMY OF EYE with eye ball .pptx
whole ANATOMY OF EYE with eye ball .pptx
simranjangra13
 
Zoonosis, Types, Causes. A comprehensive pptx
Zoonosis, Types, Causes. A comprehensive pptxZoonosis, Types, Causes. A comprehensive pptx
Zoonosis, Types, Causes. A comprehensive pptx
Dr Showkat Ahmad Wani
 
2025 Insilicogen Company Korean Brochure
2025 Insilicogen Company Korean Brochure2025 Insilicogen Company Korean Brochure
2025 Insilicogen Company Korean Brochure
Insilico Gen
 
Effect of nutrition in Entomophagous Insectson
Effect of nutrition in Entomophagous InsectsonEffect of nutrition in Entomophagous Insectson
Effect of nutrition in Entomophagous Insectson
JabaskumarKshetri
 
2025 Insilicogen Company English Brochure
2025 Insilicogen Company English Brochure2025 Insilicogen Company English Brochure
2025 Insilicogen Company English Brochure
Insilico Gen
 
Botany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdf
Botany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdfBotany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdf
Botany-Finals-Patterns-of-Inheritance-DNA-Synthesis.pdf
JseleBurgos
 
Gender Bias and Empathy in Robots: Insights into Robotic Service Failures
Gender Bias and Empathy in Robots:  Insights into Robotic Service FailuresGender Bias and Empathy in Robots:  Insights into Robotic Service Failures
Gender Bias and Empathy in Robots: Insights into Robotic Service Failures
Selcen Ozturkcan
 
Examining Visual Attention in Gaze-Driven VR Learning: An Eye-Tracking Study ...
Examining Visual Attention in Gaze-Driven VR Learning: An Eye-Tracking Study ...Examining Visual Attention in Gaze-Driven VR Learning: An Eye-Tracking Study ...
Examining Visual Attention in Gaze-Driven VR Learning: An Eye-Tracking Study ...
Yasasi Abeysinghe
 
SuperconductingMagneticEnergyStorage.pptx
SuperconductingMagneticEnergyStorage.pptxSuperconductingMagneticEnergyStorage.pptx
SuperconductingMagneticEnergyStorage.pptx
BurkanAlpKale
 
DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...
DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...
DNA Profiling and STR Typing in Forensics: From Molecular Techniques to Real-...
home
 
Preparation of Permanent mounts of Parasitic Protozoans.pptx
Preparation of Permanent mounts of Parasitic Protozoans.pptxPreparation of Permanent mounts of Parasitic Protozoans.pptx
Preparation of Permanent mounts of Parasitic Protozoans.pptx
Dr Showkat Ahmad Wani
 
Water analysis practical for ph, tds, hardness, acidity, conductivity, and ba...
Water analysis practical for ph, tds, hardness, acidity, conductivity, and ba...Water analysis practical for ph, tds, hardness, acidity, conductivity, and ba...
Water analysis practical for ph, tds, hardness, acidity, conductivity, and ba...
ss0077014
 
Infrastructure for Tracking Information Flow from Social Media to U.S. TV New...
Infrastructure for Tracking Information Flow from Social Media to U.S. TV New...Infrastructure for Tracking Information Flow from Social Media to U.S. TV New...
Infrastructure for Tracking Information Flow from Social Media to U.S. TV New...
Himarsha Jayanetti
 
4. Chapter 4 - FINAL Promoting Inclusive Culture (2).pdf
4. Chapter 4 - FINAL Promoting Inclusive Culture (2).pdf4. Chapter 4 - FINAL Promoting Inclusive Culture (2).pdf
4. Chapter 4 - FINAL Promoting Inclusive Culture (2).pdf
abayamargaug
 
Skin function_protective_absorptive_Presentatation.pptx
Skin function_protective_absorptive_Presentatation.pptxSkin function_protective_absorptive_Presentatation.pptx
Skin function_protective_absorptive_Presentatation.pptx
muralinath2
 
biochemistry amino acid from chemistry to life machinery
biochemistry amino acid from chemistry to life machinerybiochemistry amino acid from chemistry to life machinery
biochemistry amino acid from chemistry to life machinery
chaitanyaa4444
 
Skin_Glands_Structure_Secretion _Control
Skin_Glands_Structure_Secretion _ControlSkin_Glands_Structure_Secretion _Control
Skin_Glands_Structure_Secretion _Control
muralinath2
 
Polytene chromosomes. A Practical Lecture.pptx
Polytene chromosomes. A Practical Lecture.pptxPolytene chromosomes. A Practical Lecture.pptx
Polytene chromosomes. A Practical Lecture.pptx
Dr Showkat Ahmad Wani
 
Keynote presentation at DeepTest Workshop 2025
Keynote presentation at DeepTest Workshop 2025Keynote presentation at DeepTest Workshop 2025
Keynote presentation at DeepTest Workshop 2025
Shiva Nejati
 

chapter-6-oops.pdf

  • 1. Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan 1 | P a g e Chapter-6 BASIC CONCEPT OF OOP  Introduction:  Object oriented programming is the principle of design and development of programs using modular approach.  Object oriented programming approach provides advantages in creation and development of software for real life application.  The basic element of object oriented programming is the data.  The programs are built by combining data and functions that operate on the data.  Some of the OOP’s languages are C++, Java, C #, Smalltalk, Perl, and Python.  Procedural programming:  The procedural programming focuses on processing of instructions in order to perform a desired computation. Therefore it emphasizes more on doing things like algorithms.  This programming is lengthy, increases the complexity of program, difficult to understand and modify the program.  This technique is used in a conventional programming language such as C and Pascal.  Structured programming:  An organized approach to programming involving the use of three basic control structures – Sequence, Conditional and loop.  The top-down concepts to decompose main functions into lower level components for modular coding purpose.  The major drawback is that it is very difficult to model the real world scenario using this model.  Object oriented programming:  Object oriented programming (OOP) is a concept that combines both the data and the functions that operate on that data into a single unit called the object.  An object is a collection of set of data known as Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan 1 | P a g e Chapter-6 BASIC CONCEPT OF OOP  Introduction:  Object oriented programming is the principle of design and development of programs using modular approach.  Object oriented programming approach provides advantages in creation and development of software for real life application.  The basic element of object oriented programming is the data.  The programs are built by combining data and functions that operate on the data.  Some of the OOP’s languages are C++, Java, C #, Smalltalk, Perl, and Python.  Procedural programming:  The procedural programming focuses on processing of instructions in order to perform a desired computation. Therefore it emphasizes more on doing things like algorithms.  This programming is lengthy, increases the complexity of program, difficult to understand and modify the program.  This technique is used in a conventional programming language such as C and Pascal.  Structured programming:  An organized approach to programming involving the use of three basic control structures – Sequence, Conditional and loop.  The top-down concepts to decompose main functions into lower level components for modular coding purpose.  The major drawback is that it is very difficult to model the real world scenario using this model.  Object oriented programming:  Object oriented programming (OOP) is a concept that combines both the data and the functions that operate on that data into a single unit called the object.  An object is a collection of set of data known as Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan 1 | P a g e Chapter-6 BASIC CONCEPT OF OOP  Introduction:  Object oriented programming is the principle of design and development of programs using modular approach.  Object oriented programming approach provides advantages in creation and development of software for real life application.  The basic element of object oriented programming is the data.  The programs are built by combining data and functions that operate on the data.  Some of the OOP’s languages are C++, Java, C #, Smalltalk, Perl, and Python.  Procedural programming:  The procedural programming focuses on processing of instructions in order to perform a desired computation. Therefore it emphasizes more on doing things like algorithms.  This programming is lengthy, increases the complexity of program, difficult to understand and modify the program.  This technique is used in a conventional programming language such as C and Pascal.  Structured programming:  An organized approach to programming involving the use of three basic control structures – Sequence, Conditional and loop.  The top-down concepts to decompose main functions into lower level components for modular coding purpose.  The major drawback is that it is very difficult to model the real world scenario using this model.  Object oriented programming:  Object oriented programming (OOP) is a concept that combines both the data and the functions that operate on that data into a single unit called the object.  An object is a collection of set of data known as
  • 2. Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan 2 | P a g e member data and the functions that operate on these data known as member function.  OOP follows bottom-up design technique.  Class is the major concept that plays important role in this approach. Class is a template that represents a group of objects which share common properties and relationships.  Difference between Procedural Programming & Object Oriented programming: Procedural Programming Object Oriented Programming Large programs are divided into smaller programs known as functions Programs are divided into objects Data is not hidden and can be accessed by external functions Data is hidden and cannot be accessed by external functions Follow top down approach in the program design Follows bottom-up approach in the program design Data may communicate with each other through functions Objects may communicate with each other through functions. Emphasize is on procedure rather than data Emphasize is on data rather than procedure  Basic Concepts of OOP’s: The following are the major characteristics of OOP’s:  Objects  Class  Data abstraction  Data encapsulation  Inheritance  Overloading  Polymorphism  Dynamic Binding  Message Passing Important Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan 2 | P a g e member data and the functions that operate on these data known as member function.  OOP follows bottom-up design technique.  Class is the major concept that plays important role in this approach. Class is a template that represents a group of objects which share common properties and relationships.  Difference between Procedural Programming & Object Oriented programming: Procedural Programming Object Oriented Programming Large programs are divided into smaller programs known as functions Programs are divided into objects Data is not hidden and can be accessed by external functions Data is hidden and cannot be accessed by external functions Follow top down approach in the program design Follows bottom-up approach in the program design Data may communicate with each other through functions Objects may communicate with each other through functions. Emphasize is on procedure rather than data Emphasize is on data rather than procedure  Basic Concepts of OOP’s: The following are the major characteristics of OOP’s:  Objects  Class  Data abstraction  Data encapsulation  Inheritance  Overloading  Polymorphism  Dynamic Binding  Message Passing Important Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan 2 | P a g e member data and the functions that operate on these data known as member function.  OOP follows bottom-up design technique.  Class is the major concept that plays important role in this approach. Class is a template that represents a group of objects which share common properties and relationships.  Difference between Procedural Programming & Object Oriented programming: Procedural Programming Object Oriented Programming Large programs are divided into smaller programs known as functions Programs are divided into objects Data is not hidden and can be accessed by external functions Data is hidden and cannot be accessed by external functions Follow top down approach in the program design Follows bottom-up approach in the program design Data may communicate with each other through functions Objects may communicate with each other through functions. Emphasize is on procedure rather than data Emphasize is on data rather than procedure  Basic Concepts of OOP’s: The following are the major characteristics of OOP’s:  Objects  Class  Data abstraction  Data encapsulation  Inheritance  Overloading  Polymorphism  Dynamic Binding  Message Passing Important
  • 3. Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan 3 | P a g e  Objects  Objects are basic building blocks for designing programs.  An object is a collection of data members and associated member functions.  An object may represent a person, place or a table of data.  Each object is identified by a unique name. Each object must be a member of a particular class.  Example: Apple, orange, mango are the objects of class fruit.  Objects take up space in memory and have address associated with them.  At the time of execution of a program, the objects interact by sending the messages to one another.  The objects can interact with one another without having to know details of data or functions within an object.  Classes:  The objects can be made user defined data types with the help of a class.  A class is a collection of objects that have identical properties, common behavior and shared relationship.  Once class is defined, any number of objects of that class is created.  Classes are user defined data types. A class can hold both data and functions.  For example: Planets, sun, moon are member of class solar system.  Data Abstraction:  Data Abstraction refers to the process of representing essential features without including background details or explanations.  Data Encapsulation:  The wrapping of data and functions into a single unit (class) is called data encapsulation.  Data encapsulation enables data hiding and information hiding. Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan 3 | P a g e  Objects  Objects are basic building blocks for designing programs.  An object is a collection of data members and associated member functions.  An object may represent a person, place or a table of data.  Each object is identified by a unique name. Each object must be a member of a particular class.  Example: Apple, orange, mango are the objects of class fruit.  Objects take up space in memory and have address associated with them.  At the time of execution of a program, the objects interact by sending the messages to one another.  The objects can interact with one another without having to know details of data or functions within an object.  Classes:  The objects can be made user defined data types with the help of a class.  A class is a collection of objects that have identical properties, common behavior and shared relationship.  Once class is defined, any number of objects of that class is created.  Classes are user defined data types. A class can hold both data and functions.  For example: Planets, sun, moon are member of class solar system.  Data Abstraction:  Data Abstraction refers to the process of representing essential features without including background details or explanations.  Data Encapsulation:  The wrapping of data and functions into a single unit (class) is called data encapsulation.  Data encapsulation enables data hiding and information hiding. Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan 3 | P a g e  Objects  Objects are basic building blocks for designing programs.  An object is a collection of data members and associated member functions.  An object may represent a person, place or a table of data.  Each object is identified by a unique name. Each object must be a member of a particular class.  Example: Apple, orange, mango are the objects of class fruit.  Objects take up space in memory and have address associated with them.  At the time of execution of a program, the objects interact by sending the messages to one another.  The objects can interact with one another without having to know details of data or functions within an object.  Classes:  The objects can be made user defined data types with the help of a class.  A class is a collection of objects that have identical properties, common behavior and shared relationship.  Once class is defined, any number of objects of that class is created.  Classes are user defined data types. A class can hold both data and functions.  For example: Planets, sun, moon are member of class solar system.  Data Abstraction:  Data Abstraction refers to the process of representing essential features without including background details or explanations.  Data Encapsulation:  The wrapping of data and functions into a single unit (class) is called data encapsulation.  Data encapsulation enables data hiding and information hiding.
  • 4. Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan 4 | P a g e  Data hiding is a method used in object oriented programming to hide information within computer code.  Inheritance:  Inheritance is the process by which one object can acquire and use the properties of another object.  The existing class is known as base class or super class.  The new class is known as derived class or sub class.  The derived class shares some of the properties of the base class. Therefore a code from a base class can be reused by a derived class.  Overloading:  Overloading allows objects to have different meaning depending upon context.  There are two types of overloading viz. o Operator Overloading o Function Overloading  When an existing operator operates on new data type is called operator overloading.  Function overloading means two or more function have same, but differ in the number of arguments or data type of arguments.  Polymorphism:  The ability of an operator and function to take multiple forms is known as Polymorphism.  The different types of polymorphism are operator overloading and function overloading.  Dynamic binding:  Binding is the process of connecting one program to another.  Dynamic binding is the process of linking the procedure call to a specific sequence of code or function at run time or during the execution of the program.  Message Passing:  In OOP’s, processing is done by sending message to objects.  A message for an object is request for execution of procedure.
  • 5. Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan 5 | P a g e  Message passing involves specifying the name of the object, the name of the function (message) and the information to be sent.  Advantage of OOP’s  The programs are modularized based on the principles of classes and objects.  Linking code & object allows related objects to share common code. This reduces code duplication and code reusability.  Creation and implementation of OOP code is easy and reduces software development time.  The concept of data abstraction separates object specification and object implementation.  Data encapsulated along with functions. Therefore external non-member function cannot access or modify data, thus proving data security.  Easier to develop complex software, because complexity can be minimized through inheritance.  OOP can communicate through message passing which makes interface description with outside system very simple.  Disadvantage of OOP’s  Larger program size: OOP’s typically involves more lines of code than procedural programs.  Slower Programs: OOP’s typically slower than procedure based programs, as they typically require more instructions to be executed.  Not suitable for all types of programs.  To convert a real world problem into an object oriented model is difficult.  OOP’s software development, debugging and testing tools are not standardized.  Polymorphism and dynamic binding also requires processing time, due to overload of function calls during run time.  Application of OOP’s  Computer graphics applications.  .CAD/CAM software  Object-oriented database.  User-Interface design such as windows  Real-time systems.  Simulation and Modeling  Artificial intelligence and expert systems.  Client-Server Systems. Important
  • 6. Chapter 6- Basic Concept of OOP II PUC, MDRPUC, Hassan 6 | P a g e CHAPTER 6 – Basic Concept of OOP’s BLUE PRINT VSA (1 marks) SA (2 marks) LA (3 Marks) Essay (5 Marks) Total - 01 Question - 01 Question 02 Question - Question No 13 Question No 30 07 Marks Important Questions 2 Marks Question: 1. Explain: Classes, Objects, Data Abstraction, Data Encapsulation, Inheritance, and Polymorphism. 2. What is Base class and derived class? 5 Marks Question: 1. Distinguish between procedural and object oriented programming. 2. Explain the characteristics of OOP’s. 3. Briefly explain the basic concepts of OOP’s. 4. Explain the advantages of OOP’s. 5. Mention disadvantages of OOP’s. 6. Write the applications of OOP’s.