Dan chisholm:- Question 2 Which of the following modifiers can be applied to a constructor?
a. private b. abstract c. final d. volatile e. native f. None of the above.
Ans. in Dan = a private
K & B states = � Rules for Constructors The following list summarizes the rules you�ll need to know for the exam (and to understand the rest of this section): � Constructors can use any access modifier, including private.
Howdy! There are *modifiers* and there are *access modifiers*. So, things like native, abstract, etc. are modifiers, but ACCESS modifiers are only * private * public * protected
We say that there are four access LEVELS: * private * default * protected * public
(in order of restrictiveness)
but only THREE access MODIFIERS, since you can' use "default" as a modifier.
Does that help?
A lot of people at first find modifiers vs. access modifiers confusing since other modifiers can affect access in some ways (like "final"), but only the three modifers directly related to accessibility/visibility are considered "access" modifiers.
Joined: Sep 20, 2004
Wow ! mail reply straight from 'THE' 'Cowgirl'. Thanks Kathy, there remains no iota of an argument here.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com