Q. Which of the following is correct? (Solved)
1. an attribute is an class variable when each object stores its own value for the attribute
2. an attribute can also be a instance variable, which means that there is only one value stored for the attribute that is shared by all class instances
3. an instance operation can be called using any object
4. a class operation is encapsulated in a class and can be called through the class
- d. a class operation is encapsulated in a class and can be called through the class