Q & A by Maninder Singh

Question:

QUESTION: How do you achieve encapsulation in OOP?

Answer:

Encapsulation is like the practice of bundling data (attributes) and the methods that operate on that data within a class, ensuring data integrity and access control.