In c#, data abstraction is a technique to hide the unwanted or unnecessary data from the user and shows only essential data to the users.
Achieve Data abstraction-
To achieve the data abstraction we used the abstract class with the 'abstract' keyword. We can not create instance of abstract class. To use the method of abstract class which are defined as abstract method are must be override in derived class in which abstract class is inherits. Abstract class is not use directly because it does not allow to create object.
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Data Abstraction-
In c#, data abstraction is a technique to hide the unwanted or unnecessary data from the user and shows only essential data to the users.
Achieve Data abstraction-
To achieve the data abstraction we used the abstract class with the 'abstract' keyword. We can not create instance of abstract class. To use the method of abstract class which are defined as abstract method are must be override in derived class in which abstract class is inherits. Abstract class is not use directly because it does not allow to create object.