What is encapsulation?
Answers were Sorted based on User's Feedback
Answer / nagababu
Wrapping up data and methods in a single unit is called
Encapsulation.
Eg:-class
| Is This Answer Correct ? | 16 Yes | 1 No |
Answer / kumar vishal
wrapping up data and function as a single intity called
encapsulation.
| Is This Answer Correct ? | 11 Yes | 2 No |
Answer / tejavishu
combining the data and data members into a singe unit is
called the encapsulation.
ex:class.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / saamy
Data Encapsulation combines data and functions into a
single unit called Class. When using Data Encapsulation,
data is not accessed directly; it is only accessible
through the functions present inside the class. Data
Encapsulation enables the important concept of data hiding
possible.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / p suresh kumar
It is the mechanisum which unities code and data it
manipulate.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / sree
encapsulation means combining the data and the functions
using that data.
EX: class
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / navneet kaur
combining data and data members is encapsulation.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / anjana
ENCAPSULATION:
*ENCAPAULATION IS A WRAPPING UP OF DATA INTO A SINGLE UNIT.
*IT IS LIKE A CAPSULE.
| Is This Answer Correct ? | 1 Yes | 0 No |
Why multiple inheritance is not allowed?
what is pointers
What is ambiguity in c++
How is the using() pattern useful? What is IDisposable? How does it support deterministic finalization?
Write a program to multiply 3x3 matrics
Explain the concepts involved in Object Oriented programming.
What are main features of oop?
What is difference between function overloading and overriding?
what is difference between String s=new String("vali"); String s="vali"
Why do we use oops?
monkey starts climbing up a tree 20ft tall,each hour ,it hops 3ft and slips back by 2ft .how much time it wil tak to reach top of the tree?
suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?