Abstract class:
The abstract keyword is used to create abstract classes.
Abstract class cannot be instantiated because it is incomplete.
Abstract class can only be used as base class.
Abstract class cannot be sealed.
An abstract class may contain abstract members like methods , properties, indexers and events, but it’s not mandatory to have members.
A non-abstract class derived from an abstract class must provide implementations for all inherited abstract members.
Abstract class inheritance :
If a class inheriting abstract class then, there are two options available for that class:
Provide implementation for all the abstract members inherited from the base abstract class
If the class does not wish to provide implementation for all the abstract members inherited from the abstract class, then the class has to be marked as abstract.
ankpro
ankpro training
Asp.net MVC
C#
C sharp
Bangalore
Rajajinagar
Selenium
Coded UI
Mobile automation testing
Mobile testing
JQuery
JavaScript
.Net
Components of the .Net framework
Hello World
Literal
Keywords
Variable
Data types
Operators
Branching
Loops
Arrays
ArrayList
Strings
String Builder
Structures
Enums
Functions
Classes
Inheritance
Polymorphism
Properties
Indexers
Events
Nested Classes
Delegates
Anonymous methods
Labda expressions
Abstract classes
Exception Handling
Linq
Interfaces
Extension methods
Anonymous types
Generics
Collections
Garbage Collection
Reflection
Attributes
Input and output statements
Type casting
Boxing and Unboxing
Var vs Dynamic vs Object