Java – The basics

The three principals of OOP are as follows: Encapsulation is the simplest of all. It means that data of the object and operations on the data are packaged together in…