Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 05, 2005 Error message not helpful | ||||
---|---|---|---|---|
| ||||
The error "cannot create instance of abstract class X" does not tell me what method is un-implemented. Regan |
April 05, 2005 Re: Error message not helpful | ||||
---|---|---|---|---|
| ||||
Posted in reply to Regan Heath | "Regan Heath" <regan@netwin.co.nz> wrote in message news:opsoq91ysi23k2f5@nrage.netwin.co.nz... > The error "cannot create instance of abstract class X" does not tell me what method is un-implemented. I take it you mean something like this? class A { abstract void foo(); } void main() { A a=new A; } |
April 06, 2005 Re: Error message not helpful | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jarrett Billingsley | On Tue, 5 Apr 2005 15:54:36 -0400, Jarrett Billingsley <kb3ctd2@yahoo.com> wrote:
> "Regan Heath" <regan@netwin.co.nz> wrote in message
> news:opsoq91ysi23k2f5@nrage.netwin.co.nz...
>> The error "cannot create instance of abstract class X" does not tell me
>> what method is un-implemented.
>
> I take it you mean something like this?
>
> class A
> {
> abstract void foo();
> }
>
> void main()
> {
> A a=new A;
> }
In my case I was extending a class with abstract methods.
class A
{
abstract void foo();
}
class B : A {}
void main()
{
B b = new B();
}
but it's the same thing.
Regan
|
April 06, 2005 Re: Error message not helpful | ||||
---|---|---|---|---|
| ||||
Posted in reply to Regan Heath | Regan Heath wrote: > The error "cannot create instance of abstract class X" does not tell me what method is un-implemented. Already reported: http://www.digitalmars.com/drn-bin/wwwnews?digitalmars.D.bugs/1940 Stewart. -- My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit. |
Copyright © 1999-2021 by the D Language Foundation