Abstract class question
From: Passero (yanongena_at_pandora.be)
Date: 12/17/03
- Next message: Paul Campbell: "Re: Test Driven Development Sample"
- Previous message: Val: "Re: OO, I just don't get it."
- Next in thread: Phlip: "Re: Abstract class question"
- Reply: Phlip: "Re: Abstract class question"
- Reply: Uncle Bob (Robert C. Martin): "Re: Abstract class question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 17 Dec 2003 10:21:11 GMT
I have a question where i can't seem to find the answer for:
An abstract class is a class where you can't make an instance from, that's
something i know but can an abstract class hold regular methods or does
every method needs to be declared abstract? If it is possible, can such a
method be declared static (in java).
The reasen because i ask this is because i've seen a way to make a
singelton: a class where you can hold maximum 1 instance but when you make
that class abstract and you make all the methods static, it would be easier
to implement i guess... Is this correct?
- Next message: Paul Campbell: "Re: Test Driven Development Sample"
- Previous message: Val: "Re: OO, I just don't get it."
- Next in thread: Phlip: "Re: Abstract class question"
- Reply: Phlip: "Re: Abstract class question"
- Reply: Uncle Bob (Robert C. Martin): "Re: Abstract class question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|