GUMULAK.PL Blog

OOP pilars

OOP pilars

There are four main pillars of Object Oriented Programming: 1.Abstraction Abstraction is a process of exposing essential feature of an entity while hiding other irrelevant detail. Why would you want to use abstraction? abstraction...

Encapsulation vs Immutability

Encapsulation Refers to preventing callers from changing instance variables directly and making uncontrolled changes to your classes. variables are private updating variables is controlles by public setters (setName, setValue) reading variables is realized by...

0

Static imports – Java

Static imports feature enables you to import static members from a class and thus use them without qualifying name. Before static import: double varM = 3.0; double r = Math.cos(Math.PI * varM); After static...