tags:

views:

331

answers:

3

I'm adding a boolean property to a class to indicate whether something is able to be closed. Searching around I see precedent for using "closeable" and "closable" to name such properties. Which is preferable and why?

A: 

it's late so I'm going cheap and say look at this :-)

Fredou
also this: http://google.com/search?q=closeable
yjerem
A: 

I would create an interface called Closeable with one method called close().

Then you can implement it on the class any way your little heart likes. All the calling code is just going to call close.

Shaun F