Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 914 Bytes

README.md

File metadata and controls

17 lines (9 loc) · 914 Bytes

Go-OOP

This repository contains code implemented in the blogs mentioned below explaining principles of OOP.

Encapsulation

Encapsulation is defined as the wrapping up of data under a single unit. It is the mechanism that binds together code and the data it manipulates. Another way to think about encapsulation is, it is a protective shield that prevents the data from being accessed by the code outside this shield.

Encapsulation Blog

Polymorphism

Polymorphism is considered one of the important features of Object-Oriented Programming. Polymorphism allows us to perform a single action in different ways. In other words, polymorphism allows you to define one interface and have multiple implementations.

Polymorphism Blog