www.digitalmars.com         C & C++   DMDScript  

D - Abstract or not

reply "Julio CÚsar Carrascal Urquijo" <adnoctum phreaker.net> writes:
What's the difference between

class SomeObject
{
    abstract void someMethod();
}

and

class SomeObject
{
     void someMethod();
}


Thanks



--
Julio CÚsar Carrascal Urquijo
Nov 13 2003
parent "Matthew Wilson" <matthew-hat -stlsoft-dot.-org> writes:
You can never create an instance of the abstract version. The second one
just won't link


"Julio CÚsar Carrascal Urquijo" <adnoctum phreaker.net> wrote in message
news:bp1adc$2g4f$2 digitaldaemon.com...
 What's the difference between

 class SomeObject
 {
     abstract void someMethod();
 }

 and

 class SomeObject
 {
      void someMethod();
 }


 Thanks



 --
 Julio CÚsar Carrascal Urquijo

Nov 14 2003