SlideShare a Scribd company logo
Object Oriented Language -A Small discussion
OO Language An object-oriented programming language  is one that allows or encourages, to some degree, object-oriented programming techniques such as encapsulation, inheritance, modularity, and polymorphism. Simula(1967) C++,Smalltalk, Java
C++……… C++ was developed completely in the year 1998. C++ is an object oriented version of C C++ uses compile-time binding, which means that the programmer must specify the specific class of an object, or at the very least, the most general class that an object can belong to
C++………. Simple program in C++….. #include<iostream.h> Int main() { cout<<“hello world\n; } Bjarne Stroustrup, creator of C++
Small talk Development started in 1969 and publicly available in 1980 Designed by Alan Kay, Dan Ingalls, Adele Goldberg Small talk 71,72,76,80 Literals, assignments, messages, expressions, code blocks are some terms in small talk.
Transcript show: 'Hello, world!'.
Java Java is the latest, flashiest object-oriented language Java is a curious mixture of C++ and Smalltalk Java development tools are being rapidly deployed, and are available from such major software companies as IBM, Microsoft, and Symantec.  
// HelloWorld.java public class HelloWorld {  public static void main(String[] args) {  System.out.println(&quot;Hello, world!&quot;); } }
Object Oriented Programming Paradigm Data as a critical element in the program.  Data is not allowed to flow freely around  system. Ties data more closely to the function that operate on it. Protect data from accidental modification by outside functions.  The group of data and the functions together termed as objects.
The Organization of Data and Functions in OOPs
Features of OOPs  Emphasis is on data rather than procedure. Programs are divided into what are known as objects. Functions that operate on the data of an object are tied together in the data structure. Data is hidden and cannot be accessed by external functions. Objects may communicate with each other through functions. New data and functions can be easily added wherever necessary.
Basic Concepts of OOP  1) Objects 2) Classes 3) Data abstraction & Encapsulation 4) Inheritance 5) Polymorphism 6) Dynamic binding 7) Message passing
Objects Objects are the basic run-time entities in an object-oriented system. An object is a kind of a self-sufficient “subprogram ” with a specific functional area.  They may represent a person, a place, a bank account, a table of data or any  item that the program has to handle.
Object
Classes  The entire set of data and code of an object can be made a user-defined data type with the help of a class. Objects are actually variable of the type class. Once a class has been defined, it can be used to create any number of objects belonging to that class. Thus a class is collection of objects of similar type. Classes are user defined data types and behaves like the built in type of a programming language. A class is a way to bind the data and its associated functions together.
Inheritance Inheritance is the process by which object of one class acquire the properties of objects of another class. The concept of inheritance provides the idea of reusability.  A new class can be derived from the existing one. Then new class will have combined features of both the classes. For example an object of the class of car can acquire the properties of the class vehicle.
Types of inheritance Single inheritance Multiple inheritance Multilevel inheritance
General form class class_name { private:  variable declaration function declaration protected:  variable declaration function declaration public:  variable declaration function declaration }; example class student { private: int roll no,marks,total; protected: void compute(); void display(); public: student(); void execute(); };
Data abstraction  Abstraction refers to the act of representing essential features without including the background details  or  explanations. Instruments allowing only selected access of components to objects and to members of other classes is called as data abstraction.
Encapsulation  The binding of data and function together into a single entity is called encapsulation.
Polymorphism Polymorphism is the ability to take more than one form. With polymorphism an operation may show different behavior in different instances. The behavior depends upon the type of data used in the operation.  Eg: Operation of addition for two numbers, will generate a sum. If the operands are strings, then the operation would produce a third string by concatenation. The process of making an operator to show different behavior in different instance is called as operator overloading. OOPL support operator overloading
Polymorphism (contd.) Function overloading means using a single function name to perform different types of tasks.
Structure Of C++ The general form of C++ program is:
// program to add two numbers using class #include<iostream.h> #include<conio.h> class add { private: int a,b; public: int sum; void getdata() { a=5; b=10; sum=a+b; } }; void main() { add s; s.getdata(); cout<<s.sum; }
Thank You

More Related Content

PPT
Object Oriented Programming Concepts
PPTX
concept of oops
ODP
OOP java
PPTX
Object oriented programming
PPT
Object Oriented Programming with Java
PPT
Inheritance
PPT
Introduction To C#
PPTX
the Concept of Object-Oriented Programming
Object Oriented Programming Concepts
concept of oops
OOP java
Object oriented programming
Object Oriented Programming with Java
Inheritance
Introduction To C#
the Concept of Object-Oriented Programming

What's hot (20)

PDF
Object oriented software engineering concepts
PPTX
Object Oriented Programming Using C++
PPTX
Abstract class in c++
PPTX
virtual function
PPTX
Fundamentals of OOP (Object Oriented Programming)
PPTX
Basic Concepts of OOPs (Object Oriented Programming in Java)
PPTX
Gof design patterns
PPTX
Oop c++class(final).ppt
PPTX
OOPS Basics With Example
PPT
Concepts In Object Oriented Programming Languages
PDF
Oops concepts || Object Oriented Programming Concepts in Java
PPTX
Introduction to oop
PPTX
C++ presentation
PPTX
Introduction to Object Oriented Programming
PPT
Basic concepts of object oriented programming
PPTX
interface in c#
PPTX
Chapter 07 inheritance
PPTX
PPTX
Concepts of oops
Object oriented software engineering concepts
Object Oriented Programming Using C++
Abstract class in c++
virtual function
Fundamentals of OOP (Object Oriented Programming)
Basic Concepts of OOPs (Object Oriented Programming in Java)
Gof design patterns
Oop c++class(final).ppt
OOPS Basics With Example
Concepts In Object Oriented Programming Languages
Oops concepts || Object Oriented Programming Concepts in Java
Introduction to oop
C++ presentation
Introduction to Object Oriented Programming
Basic concepts of object oriented programming
interface in c#
Chapter 07 inheritance
Concepts of oops
Ad

Viewers also liked (20)

PPT
C plusplus
PDF
SSRP Self Learning Guide Maths Class 10 - In Hindi
DOC
Labsheet_3
PPTX
Unit i
DOC
Labsheet2
PPT
Oops Concepts
PPT
Language as a tool of communication
PDF
Introduction - Imperative and Object-Oriented Languages
PPTX
Introduction to object oriented language
PPTX
Object Oriented Programming
PDF
Cbse class 10 hindi course b model answers by candidates 2015
DOC
Labsheet1stud
PPT
Basics of c++
PPTX
हिन्दी व्याकरण
PPT
OOPs concept and implementation
PPTX
Chapter3: fundamental programming
PDF
4 pillars of OOPS CONCEPT
PPTX
कारक
PPT
02a fundamental c++ types, arithmetic
C plusplus
SSRP Self Learning Guide Maths Class 10 - In Hindi
Labsheet_3
Unit i
Labsheet2
Oops Concepts
Language as a tool of communication
Introduction - Imperative and Object-Oriented Languages
Introduction to object oriented language
Object Oriented Programming
Cbse class 10 hindi course b model answers by candidates 2015
Labsheet1stud
Basics of c++
हिन्दी व्याकरण
OOPs concept and implementation
Chapter3: fundamental programming
4 pillars of OOPS CONCEPT
कारक
02a fundamental c++ types, arithmetic
Ad

Similar to Object Oriented Language (20)

PPT
PDF
MCA NOTES.pdf
PDF
Object oriented programming C++
DOC
Object oriented programming
PDF
PDF
Java chapter 3
PDF
CS305PC_C++_UNIT 1 notes jntuh third semester
PPTX
1 intro
PDF
M.c.a. (sem iv)- java programming
DOC
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
PPTX
Object Oriented Programming Concepts Using C++
PPT
General OOP concept [by-Digvijay]
DOC
My c++
PPTX
POP vs OOP Introduction
PPT
C++Day-1 Introduction.ppt
PPTX
Chapter1 introduction
PPT
C++ basic intro on c++ programming language ppt
DOCX
LECTURE NOTES ON Object Oriented Programming Using C++
PDF
Object oriented concepts
MCA NOTES.pdf
Object oriented programming C++
Object oriented programming
Java chapter 3
CS305PC_C++_UNIT 1 notes jntuh third semester
1 intro
M.c.a. (sem iv)- java programming
Introduction to OOPs Concept- Features, Basic concepts, Benefits and Applicat...
Object Oriented Programming Concepts Using C++
General OOP concept [by-Digvijay]
My c++
POP vs OOP Introduction
C++Day-1 Introduction.ppt
Chapter1 introduction
C++ basic intro on c++ programming language ppt
LECTURE NOTES ON Object Oriented Programming Using C++
Object oriented concepts

More from dheva B (13)

PPTX
Managing market risk
DOC
econometrics
PPT
Addressing Modes
PPT
Quick Heal
PPT
Onion
PPT
Operational Amplifiers And Logic Gates
PPT
Dna Fingerprinting And Forensic Applications
PPT
Thin Film Transistor
PPT
Mendel
PPT
Essential Oil Production
PPT
Introduction To Economics
PPT
Personal Integrity
PPT
computer past present future
Managing market risk
econometrics
Addressing Modes
Quick Heal
Onion
Operational Amplifiers And Logic Gates
Dna Fingerprinting And Forensic Applications
Thin Film Transistor
Mendel
Essential Oil Production
Introduction To Economics
Personal Integrity
computer past present future

Recently uploaded (20)

PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Cell Structure & Organelles in detailed.
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Lesson notes of climatology university.
PDF
Computing-Curriculum for Schools in Ghana
PDF
RMMM.pdf make it easy to upload and study
PPTX
Cell Types and Its function , kingdom of life
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
master seminar digital applications in india
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Institutional Correction lecture only . . .
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Cell Structure & Organelles in detailed.
Sports Quiz easy sports quiz sports quiz
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Lesson notes of climatology university.
Computing-Curriculum for Schools in Ghana
RMMM.pdf make it easy to upload and study
Cell Types and Its function , kingdom of life
Supply Chain Operations Speaking Notes -ICLT Program
TR - Agricultural Crops Production NC III.pdf
GDM (1) (1).pptx small presentation for students
Microbial diseases, their pathogenesis and prophylaxis
O5-L3 Freight Transport Ops (International) V1.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
master seminar digital applications in india
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
2.FourierTransform-ShortQuestionswithAnswers.pdf
Microbial disease of the cardiovascular and lymphatic systems
Institutional Correction lecture only . . .

Object Oriented Language

  • 1. Object Oriented Language -A Small discussion
  • 2. OO Language An object-oriented programming language is one that allows or encourages, to some degree, object-oriented programming techniques such as encapsulation, inheritance, modularity, and polymorphism. Simula(1967) C++,Smalltalk, Java
  • 3. C++……… C++ was developed completely in the year 1998. C++ is an object oriented version of C C++ uses compile-time binding, which means that the programmer must specify the specific class of an object, or at the very least, the most general class that an object can belong to
  • 4. C++………. Simple program in C++….. #include<iostream.h> Int main() { cout<<“hello world\n; } Bjarne Stroustrup, creator of C++
  • 5. Small talk Development started in 1969 and publicly available in 1980 Designed by Alan Kay, Dan Ingalls, Adele Goldberg Small talk 71,72,76,80 Literals, assignments, messages, expressions, code blocks are some terms in small talk.
  • 7. Java Java is the latest, flashiest object-oriented language Java is a curious mixture of C++ and Smalltalk Java development tools are being rapidly deployed, and are available from such major software companies as IBM, Microsoft, and Symantec.  
  • 8. // HelloWorld.java public class HelloWorld { public static void main(String[] args) { System.out.println(&quot;Hello, world!&quot;); } }
  • 9. Object Oriented Programming Paradigm Data as a critical element in the program. Data is not allowed to flow freely around system. Ties data more closely to the function that operate on it. Protect data from accidental modification by outside functions. The group of data and the functions together termed as objects.
  • 10. The Organization of Data and Functions in OOPs
  • 11. Features of OOPs Emphasis is on data rather than procedure. Programs are divided into what are known as objects. Functions that operate on the data of an object are tied together in the data structure. Data is hidden and cannot be accessed by external functions. Objects may communicate with each other through functions. New data and functions can be easily added wherever necessary.
  • 12. Basic Concepts of OOP 1) Objects 2) Classes 3) Data abstraction & Encapsulation 4) Inheritance 5) Polymorphism 6) Dynamic binding 7) Message passing
  • 13. Objects Objects are the basic run-time entities in an object-oriented system. An object is a kind of a self-sufficient “subprogram ” with a specific functional area. They may represent a person, a place, a bank account, a table of data or any item that the program has to handle.
  • 15. Classes The entire set of data and code of an object can be made a user-defined data type with the help of a class. Objects are actually variable of the type class. Once a class has been defined, it can be used to create any number of objects belonging to that class. Thus a class is collection of objects of similar type. Classes are user defined data types and behaves like the built in type of a programming language. A class is a way to bind the data and its associated functions together.
  • 16. Inheritance Inheritance is the process by which object of one class acquire the properties of objects of another class. The concept of inheritance provides the idea of reusability. A new class can be derived from the existing one. Then new class will have combined features of both the classes. For example an object of the class of car can acquire the properties of the class vehicle.
  • 17. Types of inheritance Single inheritance Multiple inheritance Multilevel inheritance
  • 18. General form class class_name { private: variable declaration function declaration protected: variable declaration function declaration public: variable declaration function declaration }; example class student { private: int roll no,marks,total; protected: void compute(); void display(); public: student(); void execute(); };
  • 19. Data abstraction Abstraction refers to the act of representing essential features without including the background details or explanations. Instruments allowing only selected access of components to objects and to members of other classes is called as data abstraction.
  • 20. Encapsulation The binding of data and function together into a single entity is called encapsulation.
  • 21. Polymorphism Polymorphism is the ability to take more than one form. With polymorphism an operation may show different behavior in different instances. The behavior depends upon the type of data used in the operation. Eg: Operation of addition for two numbers, will generate a sum. If the operands are strings, then the operation would produce a third string by concatenation. The process of making an operator to show different behavior in different instance is called as operator overloading. OOPL support operator overloading
  • 22. Polymorphism (contd.) Function overloading means using a single function name to perform different types of tasks.
  • 23. Structure Of C++ The general form of C++ program is:
  • 24. // program to add two numbers using class #include<iostream.h> #include<conio.h> class add { private: int a,b; public: int sum; void getdata() { a=5; b=10; sum=a+b; } }; void main() { add s; s.getdata(); cout<<s.sum; }