Java OOPs вопросы и ответы для интервью
Question: Explain the concept of encapsulation in Java.Answer: Encapsulation is the bundling of data and methods that operate on the data into a single unit known as a class. It helps in hiding the implementation details and restricting access to the internal state of an object.Example:
|
Сохранить для повторения
Добавьте этот элемент в закладки, отметьте как сложный или поместите в набор для повторения.
Войдите, чтобы сохранять закладки, сложные вопросы и наборы для повторения.
Это полезно? Да Нет
Самое полезное по оценкам пользователей: