OOP Principles

code concepts in my words

Building Blocks

Objects

An object is an entity that has states and behaviors.

Classes

A class is a template or blueprint from which objects are created.

Main Principles…


This content originally appeared on DEV Community and was authored by Greg Ross

code concepts in my words

Building Blocks

-

Objects

An object is an entity that has states and behaviors.

Classes

A class is a template or blueprint from which objects are created.

Main Principles

-

Encapsulation

Encapsulation is a process of wrapping code and data together into a single unit.

Inheritance

Inheritance is a mechanism in which one object acquires all the states and behaviors of a parent object.

Abstraction

Abstraction is a process of hiding the implementation details and showing only functionality to the user.

Interface

An interface is a blueprint of a class.

Polymorphism

Polymorphism is the ability of an object to take on many forms.

Method overloading

If a class has multiple methods that have same name but different parameters, this is known as method overloading.

Method overriding

If a subclass has the same method as declared in the super class, this is known as method overriding.


This content originally appeared on DEV Community and was authored by Greg Ross


Print Share Comment Cite Upload Translate Updates
APA

Greg Ross | Sciencx (2021-11-17T17:23:38+00:00) OOP Principles. Retrieved from https://www.scien.cx/2021/11/17/oop-principles/

MLA
" » OOP Principles." Greg Ross | Sciencx - Wednesday November 17, 2021, https://www.scien.cx/2021/11/17/oop-principles/
HARVARD
Greg Ross | Sciencx Wednesday November 17, 2021 » OOP Principles., viewed ,<https://www.scien.cx/2021/11/17/oop-principles/>
VANCOUVER
Greg Ross | Sciencx - » OOP Principles. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/17/oop-principles/
CHICAGO
" » OOP Principles." Greg Ross | Sciencx - Accessed . https://www.scien.cx/2021/11/17/oop-principles/
IEEE
" » OOP Principles." Greg Ross | Sciencx [Online]. Available: https://www.scien.cx/2021/11/17/oop-principles/. [Accessed: ]
rf:citation
» OOP Principles | Greg Ross | Sciencx | https://www.scien.cx/2021/11/17/oop-principles/ |

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.