Question: what is the difference between abstraction and encapsulation in c#?
Answer: Encapsulation is hiding the code and data into a single unit toprotect the data from outer world. Abstraction is set focus on the object instead of how it does it. Encapsulation means hiding the internal details or mechanics of howan object does something.