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 |
What is the difference between the C & C++?
Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.
How is exception handling carried out in c++?
should we use linear search or binary search if elements are placed in random order or mixed?in both cases? i need a little bit detail ans?thnks
Write a C++ program to conduct an election of a mayor.Declare a class ELECTION With the following specification: Data member: Name 25 character Age Integer symbol 1 character Member functions: To accept data for 20 contestant To accept symbol as voting from 100 voters. To declare the winner and the loser.
1 Answers Global Academy, Infotech,
what is the basic concept of inheritance?
what is function over loading?
What's the full form of STL?
What is encapsulation selenium?
Write a macro for swapping integers
what is inline function?
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?