Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 744 Bytes

Summary.md

File metadata and controls

26 lines (21 loc) · 744 Bytes

Fundamental Concepts of OOP

Class And Object

Classes and objects are the basic tools of achieving OOP

A Class:

It's the model of anything in the real world.

An Object:

It's the real Instance of the model of a thing in the real world.

Note:

Every Class Has characterstics of its own: These can be adjectives => variables/fields/attributes, or actions => methods/functions.


There are Four Fundamental Concepts of OOP:

Encapsulation (Information Hiding)

Hiding Data And Complexity.

Abstraction

Making Things Simplified.

Inheritance

A Class Can derive Characterstics from another class.

Polymorphism

A Class Can implement an inherited method on its own way.