SlideShare a Scribd company logo
9
Object-Oriented Programming
9
 The basic idea behind an Object Oriented Programming
language is to combine into a single unit both data and the
methods (functions) that operate on the data.
 Some of the popular OOP languages are -
 C++
 Java
 C#
Most read
17
Object Based Programming
17
 Object Based Programming is based on the idea of encapsulating
state and operations inside “objects”.
 Object-based languages need not support inheritance or
polymorphism . While Object oriented language support all
feature of OOPS i.e. Inheritance, polymorphism etc.
 Object Based Language Build in type object are available like
window object in JavaScript .
 Example: JavaScript, VB
Most read
20
Object based Programming Object oriented Programming
Object-based language doesn't
support all the features of
OOPs like Polymorphism and
Inheritance.
Object-based language has
built-in object like JavaScript
has window object.
Examples : JavaScript, VB etc.
Object-oriented language
supports all the features of
OOPs
.
Object-oriented language
doesn't have built-in object.
Examples : C++, C#, Java etc.
20
Object based vs. Object-oriented programming
Most read
1
Welcome
Special Thanks To
Md. Sharif Hossen
Lecturer
Department of ICT
Comilla University.
2
Object-Oriented Vs. Object based
Programming
Id Name
1109025 Partha Chakrabarty
1109026 Md. Mujibur Rahman Majumder
1109028 Md. Natik Alam Bhuyan Tahsin
1109031 Md. Al Fahad
1109032 Md. Rashedul Islam
Presented By :
Outline
3
Overview
Class and Object.
Object- oriented Programming
Object based Programing
Object based vs. object-oriented programming
Conclusion
Overview
4
 What is a Class?
 What is a Object?
 What is an Object-Oriented Programming?
 Requirements of Object-Oriented language.
 What is an Object Based Programming?
 Why we use object based instead of object oriented programming?
 Difference between Object based and Object-Oriented Programming?
What is a Class?
5
 A class can be defined as a template/blueprint that describes the
state or behavior of objects of certain kinds.
 Class Contain Properties and Function.
 Example : Student , Animal, Car etc.
What is an Object?
6
 Object refers to a particular instance of a class where the object can
be a combination of variables, functions, and data structures.
 An object consists of data of its own.
Example of Class and Object.
7
Example of Class and Object Programmatically
8
Object-Oriented Programming
9
 The basic idea behind an Object Oriented Programming
language is to combine into a single unit both data and the
methods (functions) that operate on the data.
 Some of the popular OOP languages are -
 C++
 Java
 C#
Requirements for OOP
10
 To be object oriented, a language must support
 Encapsulation
 Inheritance
 Polymorphism
Encapsulation
11
 The whole idea behind the data encapsulation is to hide the
implementation details from users. This is achieved through the state
(the private fields) and the behaviors (the public methods) of a Class.
 Often, for practical reasons, an object may wish to expose some of its
variables or hide some of its methods.
 Encapsulation uses three common types of modifier to encapsulate
data.
 Public
 Private
 Protected
Inheritance
12
 Inheritance is a fundamental feature of an Object-Oriented
programming. It is the process of creating a new Class, called the
Derived Class, from the existing class, called the Base Class
 Inheritance is a very elegant way to reuse and modify the data and
functionality that has already been defined in the Base Class, also we
can add new data and functionality to the Derived Class.
Inheritance Contd.
13
 Since the Derived Class inherits all properties of the Base Class, the
Derived Class has a larger set of properties than the Base Class.
 However, the Derived Class may override some or all the properties of
the Base Class.
Types of Inheritance
14
A
B
C
A B
C
A-1
A-2
B-1
B-2
AB
Multi-level Inheritance
Multiple Inheritance
Multiple Multi-level Inheritance
Polymorphism
15
 The ability to appear in many forms.
 In object-oriented programming, polymorphism refers to a
programming language's ability to process objects differently
depending on their data type or class.
 Polymorphism allows us to invoke derived class methods through a
base class reference during runtime.
 E.g. e-bike Acceleration system.
Electronically / Mechanically
Polymorphism contd.
16
Object Based Programming
17
 Object Based Programming is based on the idea of encapsulating
state and operations inside “objects”.
 Object-based languages need not support inheritance or
polymorphism . While Object oriented language support all
feature of OOPS i.e. Inheritance, polymorphism etc.
 Object Based Language Build in type object are available like
window object in JavaScript .
 Example: JavaScript, VB
Why we use Object based instead of OOP
18
 The main benefit of Object based Programming is that
it can be understood by the common human.
 Object Based is much easier and more robust than
Object Oriented.
 It allows for fast creation of web page events.
 It allows more freedom in the creation of objects.
http://www.htmlgoodies.com/beyond/javascript/article.php/3470971
Drawbacks of object based programming
19
 Object based programming is less secure. Because the
code executes on the user’s computer, in some cases it
can be exploited for malicious purposes.
 Object based programming sometimes interpreted
differently by different browsers.
http://www.htmlgoodies.com/beyond/javascript/article.php/3470971
Object based Programming Object oriented Programming
Object-based language doesn't
support all the features of
OOPs like Polymorphism and
Inheritance.
Object-based language has
built-in object like JavaScript
has window object.
Examples : JavaScript, VB etc.
Object-oriented language
supports all the features of
OOPs
.
Object-oriented language
doesn't have built-in object.
Examples : C++, C#, Java etc.
20
Object based vs. Object-oriented programming
Conclusion
21
From the above discussion, we clearly understand about the
difference between Object Based and Object Oriented
Programming and also when we use Object based instead of
Object Oriented Programming.
Question ?
22
23

More Related Content

What's hot (20)

Php array
Php arrayPhp array
Php array
Nikul Shah
 
Object Oriented Programming ppt presentation
Object Oriented Programming ppt presentationObject Oriented Programming ppt presentation
Object Oriented Programming ppt presentation
AyanaRukasar
 
Method overriding
Method overridingMethod overriding
Method overriding
Azaz Maverick
 
Introduction to object oriented programming
Introduction to object oriented programmingIntroduction to object oriented programming
Introduction to object oriented programming
Abzetdin Adamov
 
OOP and FP
OOP and FPOOP and FP
OOP and FP
Mario Fusco
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
BG Java EE Course
 
Javascript functions
Javascript functionsJavascript functions
Javascript functions
Alaref Abushaala
 
Servlet and servlet life cycle
Servlet and servlet life cycleServlet and servlet life cycle
Servlet and servlet life cycle
Dhruvin Nakrani
 
PHP FUNCTIONS
PHP FUNCTIONSPHP FUNCTIONS
PHP FUNCTIONS
Zeeshan Ahmed
 
Asynchronous JavaScript Programming with Callbacks & Promises
Asynchronous JavaScript Programming with Callbacks & PromisesAsynchronous JavaScript Programming with Callbacks & Promises
Asynchronous JavaScript Programming with Callbacks & Promises
Hùng Nguyễn Huy
 
SQL INJECTION
SQL INJECTIONSQL INJECTION
SQL INJECTION
Anoop T
 
Java data types, variables and jvm
Java data types, variables and jvm Java data types, variables and jvm
Java data types, variables and jvm
Madishetty Prathibha
 
Exception Handling
Exception HandlingException Handling
Exception Handling
Reddhi Basu
 
Need of object oriented programming
Need of object oriented programmingNeed of object oriented programming
Need of object oriented programming
Amar Jukuntla
 
Polymorphism in oop
Polymorphism in oopPolymorphism in oop
Polymorphism in oop
MustafaIbrahimy
 
Constructor ppt
Constructor pptConstructor ppt
Constructor ppt
Vinod Kumar
 
Multi threading
Multi threadingMulti threading
Multi threading
gndu
 
Java Server Pages(jsp)
Java Server Pages(jsp)Java Server Pages(jsp)
Java Server Pages(jsp)
Manisha Keim
 
javascript objects
javascript objectsjavascript objects
javascript objects
Vijay Kalyan
 
Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops concepts
Nilesh Dalvi
 
Object Oriented Programming ppt presentation
Object Oriented Programming ppt presentationObject Oriented Programming ppt presentation
Object Oriented Programming ppt presentation
AyanaRukasar
 
Introduction to object oriented programming
Introduction to object oriented programmingIntroduction to object oriented programming
Introduction to object oriented programming
Abzetdin Adamov
 
Servlet and servlet life cycle
Servlet and servlet life cycleServlet and servlet life cycle
Servlet and servlet life cycle
Dhruvin Nakrani
 
Asynchronous JavaScript Programming with Callbacks & Promises
Asynchronous JavaScript Programming with Callbacks & PromisesAsynchronous JavaScript Programming with Callbacks & Promises
Asynchronous JavaScript Programming with Callbacks & Promises
Hùng Nguyễn Huy
 
SQL INJECTION
SQL INJECTIONSQL INJECTION
SQL INJECTION
Anoop T
 
Java data types, variables and jvm
Java data types, variables and jvm Java data types, variables and jvm
Java data types, variables and jvm
Madishetty Prathibha
 
Exception Handling
Exception HandlingException Handling
Exception Handling
Reddhi Basu
 
Need of object oriented programming
Need of object oriented programmingNeed of object oriented programming
Need of object oriented programming
Amar Jukuntla
 
Multi threading
Multi threadingMulti threading
Multi threading
gndu
 
Java Server Pages(jsp)
Java Server Pages(jsp)Java Server Pages(jsp)
Java Server Pages(jsp)
Manisha Keim
 
javascript objects
javascript objectsjavascript objects
javascript objects
Vijay Kalyan
 
Introduction to oops concepts
Introduction to oops conceptsIntroduction to oops concepts
Introduction to oops concepts
Nilesh Dalvi
 

Similar to Object oriented vs. object based programming (20)

Lec 1.1 Object Oriented Programming
Lec 1.1 Object Oriented ProgrammingLec 1.1 Object Oriented Programming
Lec 1.1 Object Oriented Programming
Badar Waseer
 
object oriented programming(oops)
object oriented programming(oops)object oriented programming(oops)
object oriented programming(oops)
HANISHTHARWANI21BCE1
 
Unit 1- Basic concept of object-oriented-programming.ppt
Unit 1- Basic concept of object-oriented-programming.pptUnit 1- Basic concept of object-oriented-programming.ppt
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
oop.pptx
oop.pptxoop.pptx
oop.pptx
KabitaParajuli3
 
OOPsConceptspythonenineeringcomputerscienceand engineering.pptx
OOPsConceptspythonenineeringcomputerscienceand engineering.pptxOOPsConceptspythonenineeringcomputerscienceand engineering.pptx
OOPsConceptspythonenineeringcomputerscienceand engineering.pptx
PraharikaCh
 
1unit-120324103142-phpapp02.pdf
1unit-120324103142-phpapp02.pdf1unit-120324103142-phpapp02.pdf
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
OOP.pptx
OOP.pptxOOP.pptx
OOP.pptx
ashmitsen2005
 
2 Object Oriented Programming
2 Object Oriented Programming2 Object Oriented Programming
2 Object Oriented Programming
Praveen M Jigajinni
 
Object-Oriented concepts.pptx
Object-Oriented concepts.pptxObject-Oriented concepts.pptx
Object-Oriented concepts.pptx
BHARATH KUMAR
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
Abhigyan Singh Yadav
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
𝗦𝗵𝗶𝘃𝗮𝗺 𝗝𝗼𝘀𝗵𝗶
 
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPUUNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
Object Oriented Programming - Cheat sheet.pptx
Object Oriented Programming - Cheat sheet.pptxObject Oriented Programming - Cheat sheet.pptx
Object Oriented Programming - Cheat sheet.pptx
MOSIUOA WESI
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
Introduction to Object Oriented Programming.pptx
Introduction to Object Oriented Programming.pptxIntroduction to Object Oriented Programming.pptx
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
Principles of OOPs.pptx
Principles of OOPs.pptxPrinciples of OOPs.pptx
Principles of OOPs.pptx
LakshyaChauhan21
 
Oops concepts
Oops conceptsOops concepts
Oops concepts
ACCESS Health Digital
 
Basics of object oriented programming c++ [autosaved]
Basics of object oriented programming c++ [autosaved]Basics of object oriented programming c++ [autosaved]
Basics of object oriented programming c++ [autosaved]
RAVIPUROHIT22
 
Computer_Programming_Part_II_Segment_01.pdf
Computer_Programming_Part_II_Segment_01.pdfComputer_Programming_Part_II_Segment_01.pdf
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
Features of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptxFeatures of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptx
avikkalsa
 
Lec 1.1 Object Oriented Programming
Lec 1.1 Object Oriented ProgrammingLec 1.1 Object Oriented Programming
Lec 1.1 Object Oriented Programming
Badar Waseer
 
Unit 1- Basic concept of object-oriented-programming.ppt
Unit 1- Basic concept of object-oriented-programming.pptUnit 1- Basic concept of object-oriented-programming.ppt
Unit 1- Basic concept of object-oriented-programming.ppt
hannahroseline2
 
OOPsConceptspythonenineeringcomputerscienceand engineering.pptx
OOPsConceptspythonenineeringcomputerscienceand engineering.pptxOOPsConceptspythonenineeringcomputerscienceand engineering.pptx
OOPsConceptspythonenineeringcomputerscienceand engineering.pptx
PraharikaCh
 
1unit-120324103142-phpapp02.pdf
1unit-120324103142-phpapp02.pdf1unit-120324103142-phpapp02.pdf
1unit-120324103142-phpapp02.pdf
SahajShrimal1
 
Object-Oriented concepts.pptx
Object-Oriented concepts.pptxObject-Oriented concepts.pptx
Object-Oriented concepts.pptx
BHARATH KUMAR
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
Abhigyan Singh Yadav
 
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPUUNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
UNIT1- OBJECT ORIENTED PROGRAMMING IN JAVA- AIML IT-SPPU
ApurvaLaddha
 
Object Oriented Programming - Cheat sheet.pptx
Object Oriented Programming - Cheat sheet.pptxObject Oriented Programming - Cheat sheet.pptx
Object Oriented Programming - Cheat sheet.pptx
MOSIUOA WESI
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
Md. Tanvir Hossain
 
Introduction to Object Oriented Programming.pptx
Introduction to Object Oriented Programming.pptxIntroduction to Object Oriented Programming.pptx
Introduction to Object Oriented Programming.pptx
ssuser8d54ed
 
Basics of object oriented programming c++ [autosaved]
Basics of object oriented programming c++ [autosaved]Basics of object oriented programming c++ [autosaved]
Basics of object oriented programming c++ [autosaved]
RAVIPUROHIT22
 
Computer_Programming_Part_II_Segment_01.pdf
Computer_Programming_Part_II_Segment_01.pdfComputer_Programming_Part_II_Segment_01.pdf
Computer_Programming_Part_II_Segment_01.pdf
et243047
 
Features of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptxFeatures of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptx
avikkalsa
 
Ad

More from Mohammad Kamrul Hasan (8)

Distinguishing Performance of 60-GHz Micro strip Patch Antenna for Different ...
Distinguishing Performance of 60-GHz Micro strip Patch Antenna for Different ...Distinguishing Performance of 60-GHz Micro strip Patch Antenna for Different ...
Distinguishing Performance of 60-GHz Micro strip Patch Antenna for Different ...
Mohammad Kamrul Hasan
 
Truth management system
Truth  management systemTruth  management system
Truth management system
Mohammad Kamrul Hasan
 
What should or not be programmed on the web
What should or not be programmed on the  webWhat should or not be programmed on the  web
What should or not be programmed on the web
Mohammad Kamrul Hasan
 
Web browsers and web document
Web browsers and web documentWeb browsers and web document
Web browsers and web document
Mohammad Kamrul Hasan
 
Tasks suitable for programming on the web
Tasks suitable for programming on the webTasks suitable for programming on the web
Tasks suitable for programming on the web
Mohammad Kamrul Hasan
 
Static dynamic and active web pages
Static dynamic and active web pagesStatic dynamic and active web pages
Static dynamic and active web pages
Mohammad Kamrul Hasan
 
Programming paradigm and web programming
Programming paradigm and web programmingProgramming paradigm and web programming
Programming paradigm and web programming
Mohammad Kamrul Hasan
 
Choice of programming language for web developing.
Choice of programming language for web developing.Choice of programming language for web developing.
Choice of programming language for web developing.
Mohammad Kamrul Hasan
 
Distinguishing Performance of 60-GHz Micro strip Patch Antenna for Different ...
Distinguishing Performance of 60-GHz Micro strip Patch Antenna for Different ...Distinguishing Performance of 60-GHz Micro strip Patch Antenna for Different ...
Distinguishing Performance of 60-GHz Micro strip Patch Antenna for Different ...
Mohammad Kamrul Hasan
 
What should or not be programmed on the web
What should or not be programmed on the  webWhat should or not be programmed on the  web
What should or not be programmed on the web
Mohammad Kamrul Hasan
 
Tasks suitable for programming on the web
Tasks suitable for programming on the webTasks suitable for programming on the web
Tasks suitable for programming on the web
Mohammad Kamrul Hasan
 
Programming paradigm and web programming
Programming paradigm and web programmingProgramming paradigm and web programming
Programming paradigm and web programming
Mohammad Kamrul Hasan
 
Choice of programming language for web developing.
Choice of programming language for web developing.Choice of programming language for web developing.
Choice of programming language for web developing.
Mohammad Kamrul Hasan
 
Ad

Recently uploaded (20)

Module 4 Presentation - Enhancing Competencies and Engagement Strategies in Y...
Module 4 Presentation - Enhancing Competencies and Engagement Strategies in Y...Module 4 Presentation - Enhancing Competencies and Engagement Strategies in Y...
Module 4 Presentation - Enhancing Competencies and Engagement Strategies in Y...
GeorgeDiamandis11
 
How to Create a Rainbow Man Effect in Odoo 18
How to Create a Rainbow Man Effect in Odoo 18How to Create a Rainbow Man Effect in Odoo 18
How to Create a Rainbow Man Effect in Odoo 18
Celine George
 
Allomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdfAllomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdf
Abha Pandey
 
june 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptxjune 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptx
roger malina
 
How to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 EmployeeHow to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 Employee
Celine George
 
Final Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptxFinal Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptx
bobby205207
 
Unit- 4 Biostatistics & Research Methodology.pdf
Unit- 4 Biostatistics & Research Methodology.pdfUnit- 4 Biostatistics & Research Methodology.pdf
Unit- 4 Biostatistics & Research Methodology.pdf
KRUTIKA CHANNE
 
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Celine George
 
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.pptxRai 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.
 
Respiratory System , Urinary System
Respiratory  System , Urinary SystemRespiratory  System , Urinary System
Respiratory System , Urinary System
RushiMandali
 
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptxDiptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Arshad Shaikh
 
Adam Grant: Transforming Work Culture Through Organizational Psychology
Adam Grant: Transforming Work Culture Through Organizational PsychologyAdam Grant: Transforming Work Culture Through Organizational Psychology
Adam Grant: Transforming Work Culture Through Organizational Psychology
Prachi Shah
 
What are the benefits that dance brings?
What are the benefits that dance brings?What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptxSEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
PoojaSen20
 
Nice Dream.pdf /
Nice Dream.pdf                              /Nice Dream.pdf                              /
Nice Dream.pdf /
ErinUsher3
 
Artificial intelligence Presented by JM.
Artificial intelligence Presented by JM.Artificial intelligence Presented by JM.
Artificial intelligence Presented by JM.
jmansha170
 
LDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad UpdatesLDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad Updates
LDM & Mia eStudios
 
How to Configure Vendor Management in Lunch App of Odoo 18
How to Configure Vendor Management in Lunch App of Odoo 18How to Configure Vendor Management in Lunch App of Odoo 18
How to Configure Vendor Management in Lunch App of Odoo 18
Celine George
 
How to Create Quotation Templates Sequence in Odoo 18 Sales
How to Create Quotation Templates Sequence in Odoo 18 SalesHow to Create Quotation Templates Sequence in Odoo 18 Sales
How to Create Quotation Templates Sequence in Odoo 18 Sales
Celine George
 
BUSINESS QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 9 SEPTEMBER 2024
BUSINESS QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 9 SEPTEMBER 2024BUSINESS 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
 
Module 4 Presentation - Enhancing Competencies and Engagement Strategies in Y...
Module 4 Presentation - Enhancing Competencies and Engagement Strategies in Y...Module 4 Presentation - Enhancing Competencies and Engagement Strategies in Y...
Module 4 Presentation - Enhancing Competencies and Engagement Strategies in Y...
GeorgeDiamandis11
 
How to Create a Rainbow Man Effect in Odoo 18
How to Create a Rainbow Man Effect in Odoo 18How to Create a Rainbow Man Effect in Odoo 18
How to Create a Rainbow Man Effect in Odoo 18
Celine George
 
Allomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdfAllomorps and word formation.pptx - Google Slides.pdf
Allomorps and word formation.pptx - Google Slides.pdf
Abha Pandey
 
june 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptxjune 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptx
roger malina
 
How to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 EmployeeHow to Manage & Create a New Department in Odoo 18 Employee
How to Manage & Create a New Department in Odoo 18 Employee
Celine George
 
Final Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptxFinal Sketch Designs for poster production.pptx
Final Sketch Designs for poster production.pptx
bobby205207
 
Unit- 4 Biostatistics & Research Methodology.pdf
Unit- 4 Biostatistics & Research Methodology.pdfUnit- 4 Biostatistics & Research Methodology.pdf
Unit- 4 Biostatistics & Research Methodology.pdf
KRUTIKA CHANNE
 
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Celine George
 
Respiratory System , Urinary System
Respiratory  System , Urinary SystemRespiratory  System , Urinary System
Respiratory System , Urinary System
RushiMandali
 
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptxDiptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Diptera: The Two-Winged Wonders, The Fly Squad: Order Diptera.pptx
Arshad Shaikh
 
Adam Grant: Transforming Work Culture Through Organizational Psychology
Adam Grant: Transforming Work Culture Through Organizational PsychologyAdam Grant: Transforming Work Culture Through Organizational Psychology
Adam Grant: Transforming Work Culture Through Organizational Psychology
Prachi Shah
 
What are the benefits that dance brings?
What are the benefits that dance brings?What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptxSEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
PoojaSen20
 
Nice Dream.pdf /
Nice Dream.pdf                              /Nice Dream.pdf                              /
Nice Dream.pdf /
ErinUsher3
 
Artificial intelligence Presented by JM.
Artificial intelligence Presented by JM.Artificial intelligence Presented by JM.
Artificial intelligence Presented by JM.
jmansha170
 
LDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad UpdatesLDMMIA Reiki Yoga Next Week Grad Updates
LDMMIA Reiki Yoga Next Week Grad Updates
LDM & Mia eStudios
 
How to Configure Vendor Management in Lunch App of Odoo 18
How to Configure Vendor Management in Lunch App of Odoo 18How to Configure Vendor Management in Lunch App of Odoo 18
How to Configure Vendor Management in Lunch App of Odoo 18
Celine George
 
How to Create Quotation Templates Sequence in Odoo 18 Sales
How to Create Quotation Templates Sequence in Odoo 18 SalesHow to Create Quotation Templates Sequence in Odoo 18 Sales
How to Create Quotation Templates Sequence in Odoo 18 Sales
Celine George
 

Object oriented vs. object based programming

  • 1. 1 Welcome Special Thanks To Md. Sharif Hossen Lecturer Department of ICT Comilla University.
  • 2. 2 Object-Oriented Vs. Object based Programming Id Name 1109025 Partha Chakrabarty 1109026 Md. Mujibur Rahman Majumder 1109028 Md. Natik Alam Bhuyan Tahsin 1109031 Md. Al Fahad 1109032 Md. Rashedul Islam Presented By :
  • 3. Outline 3 Overview Class and Object. Object- oriented Programming Object based Programing Object based vs. object-oriented programming Conclusion
  • 4. Overview 4  What is a Class?  What is a Object?  What is an Object-Oriented Programming?  Requirements of Object-Oriented language.  What is an Object Based Programming?  Why we use object based instead of object oriented programming?  Difference between Object based and Object-Oriented Programming?
  • 5. What is a Class? 5  A class can be defined as a template/blueprint that describes the state or behavior of objects of certain kinds.  Class Contain Properties and Function.  Example : Student , Animal, Car etc.
  • 6. What is an Object? 6  Object refers to a particular instance of a class where the object can be a combination of variables, functions, and data structures.  An object consists of data of its own.
  • 7. Example of Class and Object. 7
  • 8. Example of Class and Object Programmatically 8
  • 9. Object-Oriented Programming 9  The basic idea behind an Object Oriented Programming language is to combine into a single unit both data and the methods (functions) that operate on the data.  Some of the popular OOP languages are -  C++  Java  C#
  • 10. Requirements for OOP 10  To be object oriented, a language must support  Encapsulation  Inheritance  Polymorphism
  • 11. Encapsulation 11  The whole idea behind the data encapsulation is to hide the implementation details from users. This is achieved through the state (the private fields) and the behaviors (the public methods) of a Class.  Often, for practical reasons, an object may wish to expose some of its variables or hide some of its methods.  Encapsulation uses three common types of modifier to encapsulate data.  Public  Private  Protected
  • 12. Inheritance 12  Inheritance is a fundamental feature of an Object-Oriented programming. It is the process of creating a new Class, called the Derived Class, from the existing class, called the Base Class  Inheritance is a very elegant way to reuse and modify the data and functionality that has already been defined in the Base Class, also we can add new data and functionality to the Derived Class.
  • 13. Inheritance Contd. 13  Since the Derived Class inherits all properties of the Base Class, the Derived Class has a larger set of properties than the Base Class.  However, the Derived Class may override some or all the properties of the Base Class.
  • 14. Types of Inheritance 14 A B C A B C A-1 A-2 B-1 B-2 AB Multi-level Inheritance Multiple Inheritance Multiple Multi-level Inheritance
  • 15. Polymorphism 15  The ability to appear in many forms.  In object-oriented programming, polymorphism refers to a programming language's ability to process objects differently depending on their data type or class.  Polymorphism allows us to invoke derived class methods through a base class reference during runtime.  E.g. e-bike Acceleration system. Electronically / Mechanically
  • 17. Object Based Programming 17  Object Based Programming is based on the idea of encapsulating state and operations inside “objects”.  Object-based languages need not support inheritance or polymorphism . While Object oriented language support all feature of OOPS i.e. Inheritance, polymorphism etc.  Object Based Language Build in type object are available like window object in JavaScript .  Example: JavaScript, VB
  • 18. Why we use Object based instead of OOP 18  The main benefit of Object based Programming is that it can be understood by the common human.  Object Based is much easier and more robust than Object Oriented.  It allows for fast creation of web page events.  It allows more freedom in the creation of objects. http://www.htmlgoodies.com/beyond/javascript/article.php/3470971
  • 19. Drawbacks of object based programming 19  Object based programming is less secure. Because the code executes on the user’s computer, in some cases it can be exploited for malicious purposes.  Object based programming sometimes interpreted differently by different browsers. http://www.htmlgoodies.com/beyond/javascript/article.php/3470971
  • 20. Object based Programming Object oriented Programming Object-based language doesn't support all the features of OOPs like Polymorphism and Inheritance. Object-based language has built-in object like JavaScript has window object. Examples : JavaScript, VB etc. Object-oriented language supports all the features of OOPs . Object-oriented language doesn't have built-in object. Examples : C++, C#, Java etc. 20 Object based vs. Object-oriented programming
  • 21. Conclusion 21 From the above discussion, we clearly understand about the difference between Object Based and Object Oriented Programming and also when we use Object based instead of Object Oriented Programming.
  • 23. 23