SOFTWARE DESIGN
OBJECT ORIENTED DESIGN
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
For which level of visibility, the attributes of an object can be accessed and methods can be invoked by any other methods in any other class?
|
public
|
|
private
|
|
protected
|
|
package
|
Explanation:
Detailed explanation-1: -Attributes describe a value or a range of values that instances of the classifier can hold. You can specify an attribute’s type, such as an integer or Boolean, and its initial value. You can also attach a constraint to an attribute to define the range of values it holds.
Detailed explanation-2: -Which of these is not included in a class diagram of an object class? Answer: The Parent class, because it doesn’t belong to the same class.
There is 1 question to complete.