Explain about encapsulation?
Answer / Gaurav Kumar Tripathi
Encapsulation is a fundamental principle in Object-Oriented Programming (OOP) that helps to bind the data and functions together as a single unit, known as a class. This mechanism prevents data from being accessed directly by other parts of a program and ensures that objects can only be manipulated through a defined interface. Encapsulation increases the overall stability, modularity, and maintainability of the code.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can an interface implement or extend another interface?
What is a pure virtual function?
How does abstraction differ from encapsulation.
What do you meant by static and dynamic modeling?
What is the practical implementation of inner classes?
Why do we separate interface from implementation?
What is virtual multiple inheritance?
Can you explain primordial class loader?
What are the four phases of the Unified Process ?
Explain about a class in oop?
Difference: 'uses', 'extends', 'includes'
7 Answers Cognizant, Protech, TY, University,
What if we make the method as abstract in another interface?