How encapsulation and abstraction defined/used in C#.NET.

Answer Posted / animesh

Encapsulation means hiding the inner details from the user
For eg. We know that to open a lock we put key inside it
but what key will do inside the lock is hiddden. We use
inheritance for encapsulation similarly we use Abstract
classes to define abstraction in C#.

Is This Answer Correct ?    17 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by shared assembly?

761


Describe the overview of clr integration.

654


What is private in c#?

646


What do you mean by casting a data type?

694


Is c# lazy thread safe?

657


What is a satellite assembly in c#?

739


What are the Configuration files in .net?

697


What is the meaning of int parse in c#?

678


What are data types in C#?

727


Why c# is type safe?

689


Write the difference between TypeOf and GetType?

765


Why do we use anonymous method in c#?

676


What is indexer c#?

626


Can abstract class be sealed?

630


What is the difference between int16 and int32 in c#?

609