What's the difference between abstraction and encapsulation?



What's the difference between abstraction and encapsulation?..

Answer / Sanjay Rathour

Abstraction is a process of hiding implementation details and only exposing essential functionality to the user. Encapsulation, on the other hand, refers to bundling data and functions into a single unit (class or module) and controlling access to that unit.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is boxing in c#?

1 Answers  


What is selector c#?

1 Answers  


What is typeof undefined?

1 Answers  


I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?

1 Answers  


What is the keyword used to prevent a class from being inherited by another class?

1 Answers   Siebel,


What is the interface in c#?

1 Answers  


What does dbml mean?

1 Answers  


What do you mean by default constructor?

1 Answers   NIIT,


Distinguish between a class and struct?

1 Answers  


What's the difference between system.string and system.text.stringbuilder classes?

1 Answers  


Distinguish between the Debug class and Trace class with its functionality?

1 Answers   Siebel,


Explain about Oops concept

1 Answers   Digital GlobalSoft,


Categories