Skip to content
  • Linkedin
  • Youtube
  • Pinterest
  • Home
  • Privacy Policy
  • About
  • Contact
Programmingoneonone

Programmingoneonone

Programmingoneonone is a website that publishes daily tutorials, methods, guides, and articles on IT, Education, and technology.

  • Home
  • Human Values
  • DSA
  • IoT Tutorials
  • Interview Questions and Answers
  • Toggle search form
object oriented programming

What is Object Oriented Programming

Posted on 5 May 202120 May 2023 By YASH PAL No Comments on What is Object Oriented Programming

Object oriented programming is a programming paradigm that works around objects. it is a way or class of programming that uses objects and classes to create real-world applications. OOPs is not a programming language. it is a way to give shape to real-world objects in a programming language.

For example let’s say a car has different brands, colors, functionality, and features. some functions are hidden from users like we don’t know how the internal functionality of a function works and how two things are connected with each other. and the same happened with object-oriented programming. Oops, are used to bind data and functions together to make a new feature using inheritance, hiding, polymorphism, etc.

Object-oriented programming is not connected with a specific programming language. it is a feature that can be implemented by programming language or not. just like c programming is not an Object-oriented programming language, whereas C++ has both OOPs and procedural programming language features. and Java is a complete Object-oriented programming language.

object oriented programming
object-oriented programming

Features of Object-oriented programming.

  1. Inheritance
  2. Encapsulation
  3. Abstraction
  4. Polymorphism

Inheritance

In Object-oriented programming Inheritance allow a class to share their features like methods, functions, and variables with another class. if the attributes and behaviors are defined in a class then we can inherit that class into another class to access these attributes and behaviors. and the class that feature is inherited is called the parent class and the class that inherits the functionality of that class is called the child class.

Encapsulation

Encapsulation means hiding some information inside an object and only exposing the necessary information to the outside world. this feature is used to hide some private data like application keys from the outside world. that help to secure the application from others.

when we declare some methods inside a class and when an object is created using the class, the data encapsulated in that object. to use this feature in OOPs we need to declare some features private and some features in public mode.

A private method can only be accessible inside the class. and a public method can access from outside the class.

Abstraction

In OOPs abstraction means only selecting or providing the information that needs to be accessible from the outside world to work an object. for example, in a car, only the needed parts like a brake, accelerator, steering, and gear are accessible by the user. another functionality is hidden inside the parts.

Polymorphism

Polymorphism means sharing behaviors by objects. we can make the same object work on different functionality. in OOPs programming we can declare functions with the same name with different arguments and this feature is called method overriding. or we can declare the same function in two classes with the same name and this feature is called method overloading.

Method overriding is also called compile-time polymorphism and method overloading is also called run-time polymorphism.

Benefits of using OOPs in programming.

  1. Using Object-oriented programming we can make a complex application in a simple form.
  2. We can use the code multiple times and need to declare only one time.
  3. we can easily debug our application.
  4. we can hide some internal data from the users. that make our system more secure.
Basic Programming, Programming Tutorials Tags:Basic Programming, computer science

Post navigation

Previous Post: Basics of C++ Programming Language
Next Post: Introduction to C Programming Language

Related Tutorials

basic structure of c program Basic Structure of C Program C Programming Tutorials
Introduction to c programming Introduction to C Programming Language C Programming Tutorials
basic of c programming Basics of C Programming C Programming Tutorials
basic network structure and it's components with types Basic Network Structure and Components Computer Networks Tutorials
basic of c++ programming language Basics of C++ Programming Language Basic Programming
introduction to microsoft frontpage MICROSOFT FRONTPAGE Basic Programming

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Pick your Subject

  • Internet of Things
  • Data Structures/Algorithms
  • Interview Preparation
  • Human Values
  • Java Interview Questions and Answers (2023)
    Thinking of becoming a Java developer? I must say it’s a good choice! Java is continuously named the most popular programming language. And the...

    Learn More “Java Interview Questions and Answers (2023)” »

  • Iot(Internet of things) in healthcare
    IoT in Healthcare
    IoMT (Internet of Medical Things) stands for devices that can collect and exchange data – either with users or other devices via the internet,...

    Learn More “IoT in Healthcare” »

  • four stages of iot solution for industry
    IoT for Industry
    In this post, we are going to learn about use cases of IoT for Industry and four stages for providing IoT solutions. Machine Diagnosis...

    Learn More “IoT for Industry” »

  • Iot for agricultural
    IoT in Agriculture
    IoT technology has realized smart wearables, connected devices, automated machines, and driverless cars. However, in agriculture, the IoT has brought the greatest impact. Amongst the challenges...

    Learn More “IoT in Agriculture” »

  • Iot for logistics
    IoT in Logistics and Supply Chain
    IoT applications for smart logistics and supply chain systems:  Logistics Fleet Tracking  To track the locations of the vehicles in real time, the vehicle...

    Learn More “IoT in Logistics and Supply Chain” »

  • Algorithms Tutorials
  • Basic Programming
  • C Programming Tutorials
  • C++ Tutorials
  • Compiler Design Tutorials
  • Computer Networks Tutorials
  • Computer Organization Tutorials
  • Computer Science Tutorials
  • Data Structures Tutorials
  • DBMS Tutorials
  • Developer Guide
  • Digital Communication
  • Digital Logic Tutorials
  • Internet of Things Tutorials
  • Internet Tutorials
  • Interview questions answers
  • Java Tutorials
  • Javascript Tutorials
  • Machine Learning Tutorials
  • Operating Systems Tutorials
  • Programming Tutorials
  • Projects
  • Tips&Tricks
  • Tools
  • VBScript Tutorials
  • Java Interview Questions and Answers (2023)
    Thinking of becoming a Java developer? I must say it’s a good choice! Java is continuously named the most popular programming language. And the...

    Learn More “Java Interview Questions and Answers (2023)” »

  • Iot(Internet of things) in healthcare
    IoT in Healthcare
    IoMT (Internet of Medical Things) stands for devices that can collect and exchange data – either with users or other devices via the internet,...

    Learn More “IoT in Healthcare” »

  • four stages of iot solution for industry
    IoT for Industry
    In this post, we are going to learn about use cases of IoT for Industry and four stages for providing IoT solutions. Machine Diagnosis...

    Learn More “IoT for Industry” »

  • Iot for agricultural
    IoT in Agriculture
    IoT technology has realized smart wearables, connected devices, automated machines, and driverless cars. However, in agriculture, the IoT has brought the greatest impact. Amongst the challenges...

    Learn More “IoT in Agriculture” »

  • Iot for logistics
    IoT in Logistics and Supply Chain
    IoT applications for smart logistics and supply chain systems:  Logistics Fleet Tracking  To track the locations of the vehicles in real time, the vehicle...

    Learn More “IoT in Logistics and Supply Chain” »

Copyright © 2023 Programmingoneonone.

Powered by PressBook Blog WordPress theme