When would you use an interface instead of an abstract class?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at SmartGrid Technology, Lives in Munich, Germany.
If you are designing large functional units, use an abstract class. If you want to provide common, implemented functionality among all implementations of your component, use an abstract class. Abstract classes allow you to partially implement your class, whereas interfaces contain no implementation for any members.Jan 26, 2009
2023-06-12 06:34:26
评论(499)
Helpful(122)
Helpful
Helpful(2)

Ethan Davis
QuesHub.com delivers expert answers and knowledge to you.
If you are designing large functional units, use an abstract class. If you want to provide common, implemented functionality among all implementations of your component, use an abstract class. Abstract classes allow you to partially implement your class, whereas interfaces contain no implementation for any members.Jan 26, 2009