www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Abstract qs

reply "Chris Warwick" <sp m.me.not> writes:
There seems to be very little info on abstract methds / classes in the docs, 
basicly it lists it as a storage class and thats all. So..

Does a class with abstract methods need to be declared abstract aswell?

Do all the abstract methods need to be implemented before it the derived 
class can be instantiated?

can i do ablock of declarations like this...

public abstract:
void foo();
int bar();
void fooBar(int i);

cheers

cw 
Mar 08 2007
parent "Chris Warwick" <sp m.me.not> writes:
"Chris Warwick" <sp m.me.not> wrote in message 
news:espud9$22ll$1 digitalmars.com...
 There seems to be very little info on abstract methds / classes in the 
 docs, basicly it lists it as a storage class and thats all. So..

 Does a class with abstract methods need to be declared abstract aswell?

 Do all the abstract methods need to be implemented before it the derived 
 class can be instantiated?

 can i do ablock of declarations like this...

 public abstract:
 void foo();
 int bar();
 void fooBar(int i);
Ok, seems to work, lol, probably took me longer to write this message that it did to just give it a try. lol cw
Mar 08 2007