SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
OOP’S
Presentation
Submitted By,
Sharwon Pius M.
2013/B/17
Clearing The ‘‘OOP’S’’ Concept !
– 1. Object - Instance of Class
2. Class - Blue print of Object
3. Encapsulation - Protecting our Data
4. Polymorphism - Different behaviors at different instances
5. Abstraction - Hiding our irrelevant Data
6. Inheritance - One property of object is acquiring to
– another property of the object
Class & Object
– we have a Class of Laptop under which Lenovo G50, HP envy and Sony viao t5
represents individual Objects. In this context each Laptop Object will have its
own, Model,Year of Manufacture, Colour, Speed,BatteryPower etc.,which form
Properties of the Laptop class and the associated actions i.e., object functions
like Start, Restart, Volume down /up form the Methods of Laptop Class.
– The blueprint is the class...the Laptop is the object. The data of people using
the laptop ,are data stored in the object's properties.
Laptop
Lenovo G50s
HP Envy m6
Abstraction & Encapsulation
– Abstraction says, only show relevant details and rest all hide it. For Example,
This Laptop allows you to connect to wifi and surf the internet but it doesn't
show you how its actually done.
– Abstraction & Encapsulation works hand in hand because Abstraction says what
details to be made visible & Encapsulation provides the level of access right to
that visible details.SO, while connecting to the wifi the access to other laptops
are restricted for security purposes.
Polymorphmism & Inheritance
– Polymorphism can be defined as the ability of doing the same operation but
with different type of input. The web cam on the Lenovo g50s is having a
functionality of CameraClick(). Now same Lappie is having Butification mode
available in camera, so functionality would be same but with mode. This type is
said to be Static polymorphism or Compile time polymorphism.
– Inheritance is the Ability to extend the functionality from base entity in new
entity belonging to same group. This will help us to reuse the functionality
which is defined before.
Laptop Lenovo
Laptop
Lenovo G50s
HP Envy m6
Laptop Lenovo G50s
Laptop
Lenovo
HP
Single level inheritance
Multi-level inheritance
Hierarchical inheritance Hybrid inheritance
OOPS APPLICATIONS AND
PROBLEMS
1. Engg.
2. Numerical Method
3. Text Processing
4. SCIENCE , GUI by Case study.
The
Problem
statemen
t is to
make a
cheap
blind aid
.
ENGG..
import RPi.GPIO as GPIO
GPIO.setwarnings(False) # supress the system wornings
GPIO.cleanup() # clean up the GPIO pins i.e make the GPIO pins to low
GPIO.setmode(GPIO.BOARD) # Set the mode of numbering the pins.
GPIO.setup(11, GPIO.IN)
#GPIO pin 11 is the input.
GPIO.setup(12, GPIO.IN)
#GPIO pin 12 as input
GPIO.setup(13, GPIO.IN)
#GPIO pin 13 as input pin
left = GPIO.input(11)
fornt = GPIO.input(12)
right = GPIO.input(13)
#keep on polling for input pins
while 1:
{left = GPIO.input(11)
front = GPIO.input(12)
right = GPIO.input(13)
if left == True or front == True or right == True:
buzz(“Stuck! Move your stick randomly")
if left == False and front == False and right == True:
buzz("move either left ot front")
elif left == False and front == True and right == False:
buzz("move either left or right")
elif left == False and front == True and right == True:
buzz("move left")
elif left == True and front == False and right == False:
buzz("move either front or right")
elif left == True and front == False and right == True:
buzz("move front")
elif left == True and front == True and right == False:
buzz("move right")
elif left == True and front == True and right == True:
buzz("better to go back")
else:
buzz(" Checkup appaaratus")
}
Problem Statement: How many numbers need to be stored to save
a symmetric NxN matrix in lower diagonal form? (This is our statement
of problem: Note this may be a small piece of another larger problem).
Oop’s Concept and its Real Life Applications
Oop’s Concept and its Real Life Applications
• Solution algorithm: In lower diagonal form, the number of values needed go as: 1x1=1, 2x2=3, 3x3=6 ...
• To increase the dimension of the matrix from (N-1)x(N-1) to NxN requires N new values. Therefore our
algorithm is the sum of integers from 1 to N
Problem Statement: How many numbers need to be stored to save a symmetric NxN matrix in lower
diagonal form?
SOLUTION
• Call the number of values we need num_elements. How do we compute this value?
(a) Simplest
num_elements = 1 + 2 + 3 + 4 + 5 + .... + N
• Coded specifically for specific values of N. Not very flexible; could be many options depending on
number of values of N possible.
• PROGRAM-
num_elements = 0;
for i = 1:N ;
num_elements = num_elements + i ;
end ;
EARTH MAGNETIC FIELD REVERSAL
The earths magnetic field is improper along some regions of the surface making
navigation cumbersome for voyagers and travelers.
SO Scientists prepared to study the magnetic field of earth from the 1500
hundreds itself.
They found out that each element on earth had its on magnetic spin intensity.
Thus it showed the direction of the Magnetic field of earth its time period.
So they collect fallen metirots and old rocks and tested them . They ended up
with bizarre results , having no correlation between them.
Finally a Prof. GARY GCATZMAR from university of California ( in 1990’s)
put all the data collected till date regarding this magnetic behavior of earth in a
computer model . Dozen’s of equations describing, temp. , viscocity, diamension
and so forth of the plant. Then he just let it run
Oop’s Concept and its Real Life Applications
• To see the world evolve over 100,000
years of stimulated time.
• We can see that the blue region and
yellow region are the main two active
classes ( 1. north pole, 2. south pole)
and each one of its lines are its own
objects.
• These objects have properties and
methods give by those “dozens of
equations”. , along with stimulated
time.
• This proved to state that our planets
Magnetic field will reverse for every
70,000 years.
FINALE
ANY QURIES ….?

More Related Content

PPTX
Concept of OOPS with real life examples
PPT
Java interfaces
PPTX
Inheritance in java
PPT
Inheritance C#
PPTX
Friend function & friend class
PDF
Function overloading ppt
PPTX
Constructor in java
Concept of OOPS with real life examples
Java interfaces
Inheritance in java
Inheritance C#
Friend function & friend class
Function overloading ppt
Constructor in java

What's hot (20)

PDF
Java threads
PPT
Core java
PPTX
Storage classes in C
PPTX
virtual function
PPTX
Abstract class in c++
PDF
Spring boot jpa
PPTX
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
PPTX
Constructor and destructor in oop
PPTX
Java Notes
PPT
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
PPT
14. Query Optimization in DBMS
PPTX
Function overloading
PPT
Data independence
PPTX
History of java'
PDF
Collections In Java
PPTX
WHAT IS ABSTRACTION IN JAVA
PPTX
Java features
ODP
Garbage collection
PPT
Function overloading(c++)
PDF
Differences between c and c++
Java threads
Core java
Storage classes in C
virtual function
Abstract class in c++
Spring boot jpa
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Constructor and destructor in oop
Java Notes
Inheritance in c++ ppt (Powerpoint) | inheritance in c++ ppt presentation | i...
14. Query Optimization in DBMS
Function overloading
Data independence
History of java'
Collections In Java
WHAT IS ABSTRACTION IN JAVA
Java features
Garbage collection
Function overloading(c++)
Differences between c and c++
Ad

Viewers also liked (20)

PDF
Object Oriented Programming with Real World Examples
PPTX
Java Object-Oriented Programming Conecpts(Real-Time) Examples
PPTX
Introduction to Object Oriented Programming
PPT
Oops ppt
PPT
20. Object-Oriented Programming Fundamental Principles
PDF
Python avancé : Classe et objet
PDF
CLTL python course: Object Oriented Programming (1/3)
PPTX
Object oriented programming with python
PPT
Python Objects
PPTX
Python Programming Essentials - M20 - Classes and Objects
PPT
Real-time Programming in Java
PDF
Python avancé : Interface graphique et programmation évènementielle
PPTX
OOP - Benefits and advantages of OOP
PDF
4 pillars of OOPS CONCEPT
ODP
OOP java
PPT
Object Oriented Programming with Java
PPTX
oops concept in java | object oriented programming in java
PPT
Java Tutorial
PDF
Top 100 SQL Interview Questions and Answers
PPT
Object Oriented Programming Concepts
Object Oriented Programming with Real World Examples
Java Object-Oriented Programming Conecpts(Real-Time) Examples
Introduction to Object Oriented Programming
Oops ppt
20. Object-Oriented Programming Fundamental Principles
Python avancé : Classe et objet
CLTL python course: Object Oriented Programming (1/3)
Object oriented programming with python
Python Objects
Python Programming Essentials - M20 - Classes and Objects
Real-time Programming in Java
Python avancé : Interface graphique et programmation évènementielle
OOP - Benefits and advantages of OOP
4 pillars of OOPS CONCEPT
OOP java
Object Oriented Programming with Java
oops concept in java | object oriented programming in java
Java Tutorial
Top 100 SQL Interview Questions and Answers
Object Oriented Programming Concepts
Ad

Similar to Oop’s Concept and its Real Life Applications (20)

PPTX
PPT
Python
KEY
PyCon Philippines 2012 Keynote
PDF
On the necessity and inapplicability of python
PDF
On the Necessity and Inapplicability of Python
PPTX
NPTEL complete.pptx.pptx
PDF
Module 4.pdf
DOCX
ISTA 130 Lab 21 Turtle ReviewHere are all of the turt.docx
PPTX
PDF
Simulation Informatics
PDF
Vic broquard c++ for computer science and engineering 2006
PPT
Marek Suplata Projects
PPTX
1st year(I semester)proficiency presentation.pptx
PDF
NPTEL_SEM_3.pdf
PDF
Algorithms
PDF
Design patterns by example
PPTX
Python Basic for Data science enthusiast
PPTX
1P13 Python Review Session Covering various Topics
PPTX
Programming in python
PDF
452042223-Modern-Fortran-in-practice-pdf.pdf
Python
PyCon Philippines 2012 Keynote
On the necessity and inapplicability of python
On the Necessity and Inapplicability of Python
NPTEL complete.pptx.pptx
Module 4.pdf
ISTA 130 Lab 21 Turtle ReviewHere are all of the turt.docx
Simulation Informatics
Vic broquard c++ for computer science and engineering 2006
Marek Suplata Projects
1st year(I semester)proficiency presentation.pptx
NPTEL_SEM_3.pdf
Algorithms
Design patterns by example
Python Basic for Data science enthusiast
1P13 Python Review Session Covering various Topics
Programming in python
452042223-Modern-Fortran-in-practice-pdf.pdf

Recently uploaded (20)

PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Well-logging-methods_new................
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
web development for engineering and engineering
PDF
Digital Logic Computer Design lecture notes
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Geodesy 1.pptx...............................................
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PDF
composite construction of structures.pdf
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Well-logging-methods_new................
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
CH1 Production IntroductoryConcepts.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
Foundation to blockchain - A guide to Blockchain Tech
CYBER-CRIMES AND SECURITY A guide to understanding
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
web development for engineering and engineering
Digital Logic Computer Design lecture notes
Model Code of Practice - Construction Work - 21102022 .pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Geodesy 1.pptx...............................................
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Arduino robotics embedded978-1-4302-3184-4.pdf
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Lesson 3_Tessellation.pptx finite Mathematics
composite construction of structures.pdf

Oop’s Concept and its Real Life Applications

  • 2. Clearing The ‘‘OOP’S’’ Concept ! – 1. Object - Instance of Class 2. Class - Blue print of Object 3. Encapsulation - Protecting our Data 4. Polymorphism - Different behaviors at different instances 5. Abstraction - Hiding our irrelevant Data 6. Inheritance - One property of object is acquiring to – another property of the object
  • 3. Class & Object – we have a Class of Laptop under which Lenovo G50, HP envy and Sony viao t5 represents individual Objects. In this context each Laptop Object will have its own, Model,Year of Manufacture, Colour, Speed,BatteryPower etc.,which form Properties of the Laptop class and the associated actions i.e., object functions like Start, Restart, Volume down /up form the Methods of Laptop Class. – The blueprint is the class...the Laptop is the object. The data of people using the laptop ,are data stored in the object's properties. Laptop Lenovo G50s HP Envy m6
  • 4. Abstraction & Encapsulation – Abstraction says, only show relevant details and rest all hide it. For Example, This Laptop allows you to connect to wifi and surf the internet but it doesn't show you how its actually done. – Abstraction & Encapsulation works hand in hand because Abstraction says what details to be made visible & Encapsulation provides the level of access right to that visible details.SO, while connecting to the wifi the access to other laptops are restricted for security purposes.
  • 5. Polymorphmism & Inheritance – Polymorphism can be defined as the ability of doing the same operation but with different type of input. The web cam on the Lenovo g50s is having a functionality of CameraClick(). Now same Lappie is having Butification mode available in camera, so functionality would be same but with mode. This type is said to be Static polymorphism or Compile time polymorphism. – Inheritance is the Ability to extend the functionality from base entity in new entity belonging to same group. This will help us to reuse the functionality which is defined before.
  • 6. Laptop Lenovo Laptop Lenovo G50s HP Envy m6 Laptop Lenovo G50s Laptop Lenovo HP Single level inheritance Multi-level inheritance Hierarchical inheritance Hybrid inheritance
  • 7. OOPS APPLICATIONS AND PROBLEMS 1. Engg. 2. Numerical Method 3. Text Processing 4. SCIENCE , GUI by Case study.
  • 8. The Problem statemen t is to make a cheap blind aid . ENGG..
  • 9. import RPi.GPIO as GPIO GPIO.setwarnings(False) # supress the system wornings GPIO.cleanup() # clean up the GPIO pins i.e make the GPIO pins to low GPIO.setmode(GPIO.BOARD) # Set the mode of numbering the pins. GPIO.setup(11, GPIO.IN) #GPIO pin 11 is the input. GPIO.setup(12, GPIO.IN) #GPIO pin 12 as input GPIO.setup(13, GPIO.IN) #GPIO pin 13 as input pin left = GPIO.input(11) fornt = GPIO.input(12) right = GPIO.input(13) #keep on polling for input pins while 1: {left = GPIO.input(11) front = GPIO.input(12) right = GPIO.input(13) if left == True or front == True or right == True: buzz(“Stuck! Move your stick randomly") if left == False and front == False and right == True: buzz("move either left ot front")
  • 10. elif left == False and front == True and right == False: buzz("move either left or right") elif left == False and front == True and right == True: buzz("move left") elif left == True and front == False and right == False: buzz("move either front or right") elif left == True and front == False and right == True: buzz("move front") elif left == True and front == True and right == False: buzz("move right") elif left == True and front == True and right == True: buzz("better to go back") else: buzz(" Checkup appaaratus") }
  • 11. Problem Statement: How many numbers need to be stored to save a symmetric NxN matrix in lower diagonal form? (This is our statement of problem: Note this may be a small piece of another larger problem).
  • 14. • Solution algorithm: In lower diagonal form, the number of values needed go as: 1x1=1, 2x2=3, 3x3=6 ... • To increase the dimension of the matrix from (N-1)x(N-1) to NxN requires N new values. Therefore our algorithm is the sum of integers from 1 to N Problem Statement: How many numbers need to be stored to save a symmetric NxN matrix in lower diagonal form?
  • 15. SOLUTION • Call the number of values we need num_elements. How do we compute this value? (a) Simplest num_elements = 1 + 2 + 3 + 4 + 5 + .... + N • Coded specifically for specific values of N. Not very flexible; could be many options depending on number of values of N possible. • PROGRAM- num_elements = 0; for i = 1:N ; num_elements = num_elements + i ; end ;
  • 17. The earths magnetic field is improper along some regions of the surface making navigation cumbersome for voyagers and travelers. SO Scientists prepared to study the magnetic field of earth from the 1500 hundreds itself. They found out that each element on earth had its on magnetic spin intensity. Thus it showed the direction of the Magnetic field of earth its time period. So they collect fallen metirots and old rocks and tested them . They ended up with bizarre results , having no correlation between them. Finally a Prof. GARY GCATZMAR from university of California ( in 1990’s) put all the data collected till date regarding this magnetic behavior of earth in a computer model . Dozen’s of equations describing, temp. , viscocity, diamension and so forth of the plant. Then he just let it run
  • 19. • To see the world evolve over 100,000 years of stimulated time. • We can see that the blue region and yellow region are the main two active classes ( 1. north pole, 2. south pole) and each one of its lines are its own objects. • These objects have properties and methods give by those “dozens of equations”. , along with stimulated time. • This proved to state that our planets Magnetic field will reverse for every 70,000 years.

Editor's Notes

  • #5: TV REMOTE EXAMPLE
  • #12: Before moving forward we have to understand the intensity of this application. The Vectors and matrices as the solution itself. The 3d position of a quadcopter in know by calculation the robot pose which is described by a transformation matrix. SO BY MULTIPLYING THE LOCAL CORDINATE MATRICES WITH THE GLOBAL CORDINATE MATRICES ,WE CAN GET THE EXXACT POSITION O FTHE ROBOT.
  • #14: Vectors can represent state of all kinds of systems , WE can use it to represent POPULATION DISTRIBUTION , GOOGLE PAGE RANK, PASSSWORD ENCRY, FACE MORPHING, IMAGE COMPR, SEARCHING.
  • #19: To see the world
  • #21: THE GUI OF REVERSAL EARTH’S MAGNETIC FIELD
  • #22: To see the world