Why we use abstract class in c#?
c#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Yadagiri ReddyRank #773 · 3K reputationPosted Oct 27, 2014, 11:37 AM EDT
Ajay YadavRank #313 · 8.1K reputationPosted Oct 27, 2014, 5:52 PM EDT
Abstract Classes manifest couple of features as;
C# allows both classes and function to be declared abstract by using abstract keyword.
You can't create an instance of an abstract class .An abstract member has a signature but no function body and they must be overridden in any non-abstract derived class.
Abstract classes exist primarily for inheritance. Member functions, properties, indexer can be abstract.
A class with one or more abstract members must be abstract as well.
Static members can't be abstract.