Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test Forum

Home » Forum » x-Forum » Question

What is a singleton class? Give a practical example

Encapsulation is a concept in object oriented programming for combining properties and methods in a unit.

The encapsulation helps programmers to follow a modular approach for software development as each object has its own methods and variables and its functions independently of other objects supported. Encapsulation also serves to hide data.

https://www.exltech.in/java-training.html

Posted by preetiagarwal 2019-05-30 00:00:03

No Ans Posted

Please login to comment

Log In


Ask New Question