View mode: basic / threaded / horizontal-split · Log in · Help
March 08, 2007
Abstract qs
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
March 08, 2007
Re: Abstract qs
"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
Top | Discussion index | About this forum | D home