Which of the following is correct?
(a) An attribute is a class variable when each object stores its own value for the attribute
(b) An attribute can also be an instance variable, which means that there is only one value stored for the attribute that is shared by all class instances
(c) An instance operation can be called using any object
(d) A class operation is encapsulated in a class and can be called through the class
This question was addressed to me during a job interview.
Enquiry is from Advanced UML Class Diagrams in chapter Unified Modelling Language of Software Architecture