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 oops and its features?
What is the use of oops?
Can we create object of abstract class?
Can main method override?
What is encapsulation oop?
what do you mean by static member variable?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
for example A,B,C,D are class all the 4 class contain one method who() but the method who() implementaion is differnet among each class. the relation among the 4 class are A is base class and is inherited by B and C.and from this two B and C where D is inherited. the question is i want to display the output who() method in all the classes(A,B,C,D)the output of who() method is diferrent amond all the class(A,B,C,D) ------A------ virtuval who(print a) override | | who(print b) B C override who(print c) | | -------D------ override who(print d)
Why is abstraction used?
What is multilevel inheritance?
Write a program to demonstrate the use of 'Composition' in C++
Why u change company?