Abstraction & singleton
- From: "Erdinç" <erdinctaskin@xxxxxxxxx>
- Date: Thu, 31 Jan 2008 04:06:13 -0800 (PST)
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
.
- Prev by Date: Re: too much OOP ?
- Next by Date: Variant record issues (Re: Why is Object Oriented so successfull)
- Previous by thread: Re: object-oriented programming explained in 51 lines
- Index(es):