[Issue 894] New: base class with implemented abstract method problem
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 26 23:39:16 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=894
Summary: base class with implemented abstract method problem
Product: D
Version: 1.00
Platform: PC
URL: http://dstress.kuehne.cn/nocompile/a/abstract_15.d
OS/Version: Windows
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: braddr at puremagic.com
http://dstress.kuehne.cn/nocompile/a/abstract_15.d
When a base class has an abstract method with an implementation, derived
classes are still supposed to be required to override those methods according
to the spec:
Abstract Attribute
... snip ...
Functions declared as abstract can still have function bodies. This is so that
even though they must be overridden, they can still provide 'base class
functionality.'
--
More information about the Digitalmars-d-bugs
mailing list