explain oops concepts with examples?
Answer Posted / j
Encapsulation is the procedure of covering up of data and
functions into a single unit. Encapsulation (also
information hiding) consists of separating the external
aspects of an object which are accessible to other objects,
from the internal implementation details of the object,
which are hidden from other objects.
A process, encapsulation means the act of enclosing one or
more items within a (physical or logical) container (Class)
| Is This Answer Correct ? | 79 Yes | 38 No |
Post New Answer View All Answers
What is the use of optional ?
Is object a data type in java?
Write a java program to count the number of words present in a string?
Why do we need singleton?
What is an abstract class and what is it’s purpose?
What are the new features in java 8? Explain
what is thread in Java ?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is an object in java and how is it created?
How to Sort Strings which are given in List and display in ascending order without using java api.
How do you declare an array that will hold more than 64KB of data?
What is the indent key?
Explain wait(), notify() and notifyall() methods of object class ?
What is the technique adopted to create an immutable class?
Difference between vector and arraylist.