abstract class information

ag0aep6g via Digitalmars-d digitalmars-d at puremagic.com
Tue May 30 22:30:20 PDT 2017


On 05/31/2017 12:19 AM, Jonathan M Davis via Digitalmars-d wrote:
> Note that marking a class as abstract is equivalent to marking
> all of its member functions with abstract, just like marking class with
> @safe would make all of its member functions @safe. So, there isn't really
> any special handling of marking the class itself as abstract.

That's not true. A class's `abstract` attribute does not transfer to its 
methods. It's the other way around: Having an abstract method makes the 
class abstract.


More information about the Digitalmars-d mailing list