From: Erdinç on

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
"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?