Timeline for Is there any difference between interfaces and abstract classes that have abstract methods only?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 16, 2014 at 21:30 | comment | added | Johan Boulé | Just a note. In some languages, private virtual methods can be overridden in derived classes. | |
Apr 19, 2013 at 13:07 | comment | added | Thomas | Yes, I was thinking about something like that, but don't have any experience with it, so could not judge. Thanks for the input. | |
Apr 19, 2013 at 13:02 | comment | added | Ivan Pintar | Protected virtual (override-able) methods can be useful for classes that are part of a framework or something like that. That way they ensure that the custom code in a class that inherits the abstract provides that functionality. Though this can also be achieved by inheriting an interface on the base class but not actually implementing its methods | |
Apr 19, 2013 at 12:48 | history | edited | Thomas | CC BY-SA 3.0 |
added 229 characters in body
|
Apr 19, 2013 at 12:23 | history | answered | Thomas | CC BY-SA 3.0 |