|
Prev: Testing Code (Re: too much OOP ?)
Next: Variant record issues (Re: Why is Object Oriented so successfull)
From: Erdinç on 1 Feb 2008 07:06 Hello, Basicly I need a class singleton and also include abstract function? Is there any possibilty to achieve this structure? More details ------------------- There is 2 class - class A that base class and also singleton, - class B that derived from A also include abstract function And I want to create a class that implements B class. Class A { void func() { // do it something } } abstract Class B extends A{ void func() { super.func(); // add extra code abst() ; } abstract abst() ; } Class C implement B { abst() { // add something } } Thanks a lots
From: Daniel T. on 1 Feb 2008 06:20
"Erdin�" <erdinctaskin(a)gmail.com> wrote: > Hello, Basicly I need a class singleton and also include abstract > function? Is there any possibilty to achieve this structure? > > > More details > ------------------- > There is 2 class > - class A that base class and also singleton, > - class B that derived from A also include abstract function > > And I want to create a class that implements B class. > > Class A { > > void func() { > // do it something > } > } > > > abstract Class B extends A{ > > void func() { > super.func(); > // add extra code > abst() ; > } > > abstract abst() ; > > } > > > Class C implement B { > abst() { > // add something > } > } What's wrong with the code you provided? |