TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Difference between Abstract Class and Polymorphism in C#
Vignesh Mani
Jul 13, 2015
50.5
k
0
2
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
This topic helps to learn in depth about different between abstract class and polymorphism.
Here are the points of difference between abstract class and polymorphism:
Abstract class is a base class. Cannot create instance whether it may be base class or not. But in polymorphism, we can create instance to base class.
In abstract class, we use abstract keyword to method but in polymorphism uses virtual keyword to base class method.
In abstract class, we can declare abstract method inside abstract method and can define method which class derived abstract class.
In polymorphism, declaration and definition are only inside corresponding class.
In polymorphism, we can access derived class method through base class, but in abstract class we cannot access derived class method threw base class because cannot create an object to base class.
Abstract method declares only inside abstract class, but we can declare virtual method inside a class as well (it should be a base class).
abstract class
polymorphism
C#
Next Recommended Reading
Class, Inheritance And Abstract Class With Real Time Examples In C#