This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes What is Classifier Level? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "What is Classifier Level?" Watch "What is Classifier Level?" New topic
Author

What is Classifier Level?

Ram Dhan Yadav K
Ranch Hand

Joined: Aug 13, 2001
Posts: 321
When a UML Class attribute is scoped at the classifier level, it is implemented with which one of the following C++ and Java terms?
a) Public
b) Final
c) Private
d) Protected
e) Static
What's the answer for this question?
What is classifier level?
thanks,
Ramdhan YK


Ram Dhan Yadav (SCJP, SCWCD, SCJA-I, IBM EC(483))
"We are what we repeatedly do. Excellence, then, is not an act, but a habit."
Allan Moster
Ranch Hand

Joined: Sep 14, 2001
Posts: 153
For encapsulation, attributes should be scoped as private. In ANSI C++, Class is viewed as a form of classifier so as struct, union, typedef, instantiated class, and enumerations.
Roshan Lal
Ranch Hand

Joined: Nov 13, 2001
Posts: 64
Originally posted by Ramdhan Kotamaraja:
When a UML Class attribute is scoped at the classifier level, it is implemented with which one of the following C++ and Java terms?
a) Public
b) Final
c) Private
d) Protected
e) Static
What's the answer for this question?
What is classifier level?
thanks,
Ramdhan YK


I think it is e. Classifier level means class/interface level and that is "static" in these options.

Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
I think that Alan is right, though access classifier would be much more clear. I don't see any connection between classifier and static.
Its good OO practice to use private (access) classifier for attributes (aka. fields, member variables, properties)

correct me if i am wrong
Axel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is Classifier Level?
 
Similar Threads
Companies not using UML
UML Questions
can child class have more parents in UML
Maven - descriptor file alongside a jar
Abstract class in UML