C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
3
Reply
What is the use of abstract class ?
Panduranga Nadikuda
9y
419
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
Incomplete class
Mukesh Kumar
8y
0
Abstract classes are used in scenarios, when there is a need of Multi level inheritances of classes, and they should also implement a Interface. Eg: suppose you have a interface named InterfaceTest with 4 properties and class A has implemented this interface. Now the situation arises that i have to inherit a Class B from Class A. Now when Class B tries to inherit from Class A, Class B will be forced to implement the interface properties which are already implemented by the Class A. So this will continue unless you , place a Abstract Class between Interface and Class A. In this scenario the abstract class will implement the interface , and the class A will inherit from the abstract class.But now the difference, is the Class A , need not implement any of the interface properties.
satya panda
8y
0
1.If you are designing large functional units, use an abstract class. 2.If you want to provide common, implemented functionality among all implementations of your component, use an abstract class. 3.Abstract classes allow you to partially implement your class
sanjay kumar
8y
0
Message