Basic Concepts of OOP (Object-Oriented Programming)

What Is an Object in Programming?

Object-oriented programming, or OOP, is an approach to problem-solving
where all computations are carried out using objects.

An object is a component of a program that knows how to perform certain actions…


This content originally appeared on DEV Community and was authored by Mahmoud EL-kariouny

What Is an Object in Programming?

Object-oriented programming, or OOP, is an approach to problem-solving
where all computations are carried out using objects.

An object is a component of a program that knows how to perform certain actions and how
to interact with other elements of the program.

Objects are the basic units of object-oriented programming.
A simple example of an object would be a person.

Logically, you would expect a person to have a name.

This would be considered the property of the person.

You could also expect a person to be able to do something, such as walking or driving.

This would be considered a method of the person.

Basic Concepts:

Class

  • The class is a model or blueprint or prototype of an object that defines or specifies all the properties & behavior of the objects.

object

  • An object is an entity or instance of a class.
  • Each object has properties and behaviors.

Polymorphism

  • Polymorphism refers to the ability to process objects differently depending on their data type or class.

Abstraction

  • Abstraction means hiding the implementation and showing only functionality to the user.

Encapsulation

  • Encapsulation is the process of binding the data by making it private and functions to process that data into a single unit.

Watch this video till the end


This content originally appeared on DEV Community and was authored by Mahmoud EL-kariouny


Print Share Comment Cite Upload Translate Updates
APA

Mahmoud EL-kariouny | Sciencx (2021-10-18T00:26:19+00:00) Basic Concepts of OOP (Object-Oriented Programming). Retrieved from https://www.scien.cx/2021/10/18/basic-concepts-of-oop-object-oriented-programming/

MLA
" » Basic Concepts of OOP (Object-Oriented Programming)." Mahmoud EL-kariouny | Sciencx - Monday October 18, 2021, https://www.scien.cx/2021/10/18/basic-concepts-of-oop-object-oriented-programming/
HARVARD
Mahmoud EL-kariouny | Sciencx Monday October 18, 2021 » Basic Concepts of OOP (Object-Oriented Programming)., viewed ,<https://www.scien.cx/2021/10/18/basic-concepts-of-oop-object-oriented-programming/>
VANCOUVER
Mahmoud EL-kariouny | Sciencx - » Basic Concepts of OOP (Object-Oriented Programming). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/10/18/basic-concepts-of-oop-object-oriented-programming/
CHICAGO
" » Basic Concepts of OOP (Object-Oriented Programming)." Mahmoud EL-kariouny | Sciencx - Accessed . https://www.scien.cx/2021/10/18/basic-concepts-of-oop-object-oriented-programming/
IEEE
" » Basic Concepts of OOP (Object-Oriented Programming)." Mahmoud EL-kariouny | Sciencx [Online]. Available: https://www.scien.cx/2021/10/18/basic-concepts-of-oop-object-oriented-programming/. [Accessed: ]
rf:citation
» Basic Concepts of OOP (Object-Oriented Programming) | Mahmoud EL-kariouny | Sciencx | https://www.scien.cx/2021/10/18/basic-concepts-of-oop-object-oriented-programming/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.