Possible Duplicate:
What is the correct possessive for nouns ending in s?
I want to write this sentence:
In a singleton pattern, a class's
constructor needs to be private
instead of public.
it is correct to write:
- a classes constructor
- a class' constructor
- a class's constructor
- a classes' constructor
Best Answer
That would be class' or class's, but I would rather change the sentence to avoid that altogether.
Also, as it's a specific pattern that is applied to a specific class, it would be more correct to refer to the pattern and the class instead of a pattern and a class:
As the pattern is something that only is applied to a class, it can even be implied: