SlideShare a Scribd company logo
Object Oriented Programming
- Basic Concept
Why OOPs?
1. Procedural Programming
- Program executes statement by statement.
1. Structured Programming
- Modular programming(Help of Function)
1. Object oriented Programming
- Concept implemented with Classes & Object
Class
● Class is a template definition of the methods and variables in a particular kind
of object.
● Class created using the Keyword class
● Class name start with capital letter and can use Camel cases for name.
Object
● Object is the instance of Class. It used for access class methods and
properties.
● The object is created with the help of new keyword.
● Multiple object can create single Class.
Access Specifiers
● Public
- Publicly accessible from anywhere.
- Created using keyword public we will create variables and methods. By
default all method and properties are public.
● Private
- Scope is only inside particular class.
- Created using keyword private we will create variables and methods.
● Protected
Inheritance
● Accessing the properties and methods of one from another class.
● The keyword extends is used for extending base class properties.
● Types Of Inheritance
○ Single Level Inheritance
- Parent class methods will be extended by the child class.
○ Multilevel Inheritance
- Parent class method will be inherited by child class and again
subclass will inherit the child class method.
Object Oriented Programming - Basic Concepts

More Related Content

What's hot (20)

OOPS Characteristics
OOPS Characteristics
baabtra.com - No. 1 supplier of quality freshers
 
SEMINAR
SEMINAR
priteshkhandelwal
 
concept of oops
concept of oops
prince sharma
 
Advanced OOP - Laws, Principles, Idioms
Advanced OOP - Laws, Principles, Idioms
Clint Edmonson
 
Java Object Oriented Programming
Java Object Oriented Programming
University of Potsdam
 
the Concept of Object-Oriented Programming
the Concept of Object-Oriented Programming
Aida Ramlan II
 
Lecture 2
Lecture 2
emailharmeet
 
Oops concept in c++ unit 3 -topic 4
Oops concept in c++ unit 3 -topic 4
MOHIT TOMAR
 
Oop basic overview
Oop basic overview
Deborah Akuoko
 
Oops
Oops
Prabhu R
 
Object oriented programming
Object oriented programming
Amit Soni (CTFL)
 
Object Oriented Programming using C++ Part II
Object Oriented Programming using C++ Part II
Ajit Nayak
 
Object-Oriented Concepts
Object-Oriented Concepts
Abdalla Mahmoud
 
General oops concepts
General oops concepts
nidhiyagnik123
 
Concepts of oops
Concepts of oops
Sourabrata Mukherjee
 
Object Oriented Language
Object Oriented Language
dheva B
 
Object oriented programming
Object oriented programming
Sandeep Kumar Singh
 
OOP programming
OOP programming
anhdbh
 
1 unit (oops)
1 unit (oops)
Jay Patel
 
Beginners Guide to Object Orientation in PHP
Beginners Guide to Object Orientation in PHP
Rick Ogden
 
Advanced OOP - Laws, Principles, Idioms
Advanced OOP - Laws, Principles, Idioms
Clint Edmonson
 
the Concept of Object-Oriented Programming
the Concept of Object-Oriented Programming
Aida Ramlan II
 
Oops concept in c++ unit 3 -topic 4
Oops concept in c++ unit 3 -topic 4
MOHIT TOMAR
 
Object oriented programming
Object oriented programming
Amit Soni (CTFL)
 
Object Oriented Programming using C++ Part II
Object Oriented Programming using C++ Part II
Ajit Nayak
 
Object-Oriented Concepts
Object-Oriented Concepts
Abdalla Mahmoud
 
Object Oriented Language
Object Oriented Language
dheva B
 
OOP programming
OOP programming
anhdbh
 
1 unit (oops)
1 unit (oops)
Jay Patel
 
Beginners Guide to Object Orientation in PHP
Beginners Guide to Object Orientation in PHP
Rick Ogden
 

Similar to Object Oriented Programming - Basic Concepts (20)

1unit-120324103142-phpapp02.pdf
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
introduction of Object oriented programming
introduction of Object oriented programming
RiturajJain8
 
Introduction to Object Oriented Programming.pptx
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
Unit 1 OOSE
Unit 1 OOSE
ChhayaShelake
 
yo.pptxoajsdisa odasjd asodjaojdoawjdoasjdow
yo.pptxoajsdisa odasjd asodjaojdoawjdoasjdow
l226207
 
POP vs OOP Introduction
POP vs OOP Introduction
Hashni T
 
Computer_Programming_Part_II_Segment_01.pdf
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
Object Oriented Programming intro Lecture 1.pptx
Object Oriented Programming intro Lecture 1.pptx
ssuser8d54ed
 
Introduction.ppt JAVA SCRIPT PROGRAMMING AND
Introduction.ppt JAVA SCRIPT PROGRAMMING AND
Jifarnecho
 
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
berihun18
 
2 Object Oriented Programming
2 Object Oriented Programming
Praveen M Jigajinni
 
Introduction to oop with c++
Introduction to oop with c++
Shruti Patel
 
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
Object Oriented Programming Concepts
Object Oriented Programming Concepts
Abhigyan Singh Yadav
 
Different paradigms for problem solving.pptx
Different paradigms for problem solving.pptx
iitjeesooraj
 
Object Oriented Program Class 12 Computer Science
Object Oriented Program Class 12 Computer Science
ShailendraPandey96
 
OOP-1.pptx
OOP-1.pptx
iansebuabeh
 
Bluej
Bluej
Saurabh Bhartiya
 
Basic Concepts of Object Oriented Programming
Basic Concepts of Object Oriented Programming
AndiDesign1
 
Basic Java Concept - Practical Oriented Methodologies
Basic Java Concept - Practical Oriented Methodologies
SakthiVinayagam5
 
1unit-120324103142-phpapp02.pdf
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
introduction of Object oriented programming
introduction of Object oriented programming
RiturajJain8
 
Introduction to Object Oriented Programming.pptx
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
yo.pptxoajsdisa odasjd asodjaojdoawjdoasjdow
yo.pptxoajsdisa odasjd asodjaojdoawjdoasjdow
l226207
 
POP vs OOP Introduction
POP vs OOP Introduction
Hashni T
 
Computer_Programming_Part_II_Segment_01.pdf
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
Object Oriented Programming intro Lecture 1.pptx
Object Oriented Programming intro Lecture 1.pptx
ssuser8d54ed
 
Introduction.ppt JAVA SCRIPT PROGRAMMING AND
Introduction.ppt JAVA SCRIPT PROGRAMMING AND
Jifarnecho
 
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
chapterOne.pptxFSdgfqdzwwfagxgghvkjljhcxCZZXvcbx
berihun18
 
Introduction to oop with c++
Introduction to oop with c++
Shruti Patel
 
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
Object Oriented Programming Concepts
Object Oriented Programming Concepts
Abhigyan Singh Yadav
 
Different paradigms for problem solving.pptx
Different paradigms for problem solving.pptx
iitjeesooraj
 
Object Oriented Program Class 12 Computer Science
Object Oriented Program Class 12 Computer Science
ShailendraPandey96
 
Basic Concepts of Object Oriented Programming
Basic Concepts of Object Oriented Programming
AndiDesign1
 
Basic Java Concept - Practical Oriented Methodologies
Basic Java Concept - Practical Oriented Methodologies
SakthiVinayagam5
 
Ad

More from Arunkumar Kupppuswamy (7)

Drupal Development Tools.pdf
Drupal Development Tools.pdf
Arunkumar Kupppuswamy
 
Build website using Open Source Technology
Build website using Open Source Technology
Arunkumar Kupppuswamy
 
Drupal 8 Performance & SEO optimizaion
Drupal 8 Performance & SEO optimizaion
Arunkumar Kupppuswamy
 
D8 search api
D8 search api
Arunkumar Kupppuswamy
 
Drupal 8 : Introduction to Big Pipe
Drupal 8 : Introduction to Big Pipe
Arunkumar Kupppuswamy
 
Drupal Coding Standards - do and don't
Drupal Coding Standards - do and don't
Arunkumar Kupppuswamy
 
Drupal and security - Advice for Site Builders and Coders
Drupal and security - Advice for Site Builders and Coders
Arunkumar Kupppuswamy
 
Ad

Recently uploaded (20)

Unit- 4 Biostatistics & Research Methodology.pdf
Unit- 4 Biostatistics & Research Methodology.pdf
KRUTIKA CHANNE
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
Ray Dalio How Countries go Broke the Big Cycle
Ray Dalio How Countries go Broke the Big Cycle
Dadang Solihin
 
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Veera Pallapu
 
Overview of Off Boarding in Odoo 18 Employees
Overview of Off Boarding in Odoo 18 Employees
Celine George
 
Allomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdf
Abha Pandey
 
Nice Dream.pdf /
Nice Dream.pdf /
ErinUsher3
 
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDM & Mia eStudios
 
Rai dyansty Chach or Brahamn dynasty, History of Dahir History of Sindh NEP.pptx
Rai dyansty Chach or Brahamn dynasty, History of Dahir History of Sindh NEP.pptx
Dr. Ravi Shankar Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
BUSINESS QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 9 SEPTEMBER 2024
BUSINESS QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 9 SEPTEMBER 2024
Quiz Club of PSG College of Arts & Science
 
How to Manage Upselling of Subscriptions in Odoo 18
How to Manage Upselling of Subscriptions in Odoo 18
Celine George
 
How to Create an Event in Odoo 18 - Odoo 18 Slides
How to Create an Event in Odoo 18 - Odoo 18 Slides
Celine George
 
Black and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdf
AnnasofiaUrsini
 
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
razelitouali
 
The Man In The Back – Exceptional Delaware.pdf
The Man In The Back – Exceptional Delaware.pdf
dennisongomezk
 
LDMMIA Spring Ending Guest Grad Student News
LDMMIA Spring Ending Guest Grad Student News
LDM & Mia eStudios
 
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Rajdeep Bavaliya
 
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
Arshad Shaikh
 
Overview of Employee in Odoo 18 - Odoo Slides
Overview of Employee in Odoo 18 - Odoo Slides
Celine George
 
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptx
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptx
Belicia R.S
 
Unit- 4 Biostatistics & Research Methodology.pdf
Unit- 4 Biostatistics & Research Methodology.pdf
KRUTIKA CHANNE
 
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
SPENT QUIZ NQL JR FEST 5.0 BY SOURAV.pptx
Sourav Kr Podder
 
Ray Dalio How Countries go Broke the Big Cycle
Ray Dalio How Countries go Broke the Big Cycle
Dadang Solihin
 
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Veera Pallapu
 
Overview of Off Boarding in Odoo 18 Employees
Overview of Off Boarding in Odoo 18 Employees
Celine George
 
Allomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdf
Abha Pandey
 
Nice Dream.pdf /
Nice Dream.pdf /
ErinUsher3
 
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDM & Mia eStudios
 
How to Manage Upselling of Subscriptions in Odoo 18
How to Manage Upselling of Subscriptions in Odoo 18
Celine George
 
How to Create an Event in Odoo 18 - Odoo 18 Slides
How to Create an Event in Odoo 18 - Odoo 18 Slides
Celine George
 
Black and White Illustrative Group Project Presentation.pdf (1).pdf
Black and White Illustrative Group Project Presentation.pdf (1).pdf
AnnasofiaUrsini
 
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
Energy Balances Of Oecd Countries 2011 Iea Statistics 1st Edition Oecd
razelitouali
 
The Man In The Back – Exceptional Delaware.pdf
The Man In The Back – Exceptional Delaware.pdf
dennisongomezk
 
LDMMIA Spring Ending Guest Grad Student News
LDMMIA Spring Ending Guest Grad Student News
LDM & Mia eStudios
 
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Rajdeep Bavaliya
 
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
Arshad Shaikh
 
Overview of Employee in Odoo 18 - Odoo Slides
Overview of Employee in Odoo 18 - Odoo Slides
Celine George
 
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptx
ROLE PLAY: FIRST AID -CPR & RECOVERY POSITION.pptx
Belicia R.S
 

Object Oriented Programming - Basic Concepts

  • 2. Why OOPs? 1. Procedural Programming - Program executes statement by statement. 1. Structured Programming - Modular programming(Help of Function) 1. Object oriented Programming - Concept implemented with Classes & Object
  • 3. Class ● Class is a template definition of the methods and variables in a particular kind of object. ● Class created using the Keyword class ● Class name start with capital letter and can use Camel cases for name.
  • 4. Object ● Object is the instance of Class. It used for access class methods and properties. ● The object is created with the help of new keyword. ● Multiple object can create single Class.
  • 5. Access Specifiers ● Public - Publicly accessible from anywhere. - Created using keyword public we will create variables and methods. By default all method and properties are public. ● Private - Scope is only inside particular class. - Created using keyword private we will create variables and methods. ● Protected
  • 6. Inheritance ● Accessing the properties and methods of one from another class. ● The keyword extends is used for extending base class properties. ● Types Of Inheritance ○ Single Level Inheritance - Parent class methods will be extended by the child class. ○ Multilevel Inheritance - Parent class method will be inherited by child class and again subclass will inherit the child class method.