We will learn an abstract class in c# in this video.
What is an abstract class in c#?
- An abstract class can contain an abstract and non-abstract member.
- An abstract class can be used as a base class.
- We can not create the object of an abstract class.
- An abstract method does not have body/definition.
- An abstract class cannot be marked as a sealed class.
- We can create abstract class and method by using "abstract" keyword.
- Once we inherit the abstract class in derived class then we must provide the definition to the abstract member.
- We can implement an abstract method by using "override" keyword.
Realated Video Url:
https://www.youtube.com/watch?v=xbIgPwaAwjQ&t=10s
https://www.youtube.com/watch?v=aedwpjcBDCU&t=169s
https://www.youtube.com/watch?v=SM5tNdVmgqM
Website: www.programmingwithshri.com