filmov
tv
Abstract Class C# | Abstract Method C# | Tech Point Fundamentals #techpointfundamentals
![preview_player](https://i.ytimg.com/vi/UWZFQASkgDE/maxresdefault.jpg)
Показать описание
Abstract Class C# | Abstract Method C# | Tech Point Fundamentals #techpointfundamentals
Data Abstraction is the process of hiding certain details and showing only essential information to the user. In C# abstraction can be achieved with either abstract classes or interfaces
The purpose of an abstract class is to provide a skeletal structure or blueprint for other classes to derive from along with the common reusable methods, properties, events, or indexers.
An abstract class may or may not have any abstract method but, it can never be instantiated. It can only be used as a base class, and the inheriting class must have to implement the abstract members of the base class unless the inheriting class is also an abstract class.
A method without body definition and having an "abstract" modifier is known as an abstract method. The inheriting class must have to implement all the abstract members with the "override" keyword unless the inheriting class is also an abstract class because all the abstract methods are virtual implicitly.
Recommended Videos Playlists:
Recommended Videos:
Data Abstraction is the process of hiding certain details and showing only essential information to the user. In C# abstraction can be achieved with either abstract classes or interfaces
The purpose of an abstract class is to provide a skeletal structure or blueprint for other classes to derive from along with the common reusable methods, properties, events, or indexers.
An abstract class may or may not have any abstract method but, it can never be instantiated. It can only be used as a base class, and the inheriting class must have to implement the abstract members of the base class unless the inheriting class is also an abstract class.
A method without body definition and having an "abstract" modifier is known as an abstract method. The inheriting class must have to implement all the abstract members with the "override" keyword unless the inheriting class is also an abstract class because all the abstract methods are virtual implicitly.
Recommended Videos Playlists:
Recommended Videos: