1. (TCO 2) Which of the following statements is true? (Points : 2) Object names
ID: 3842333 • Letter: 1
Question
1. (TCO 2) Which of the following statements is true? (Points : 2) Object names are listed in the bottom section of a UML diagram.
Attribute names are listed in the bottom section of a UML diagram.
Method names are listed in the bottom section of a UML diagram.
Class names are listed in the bottom section of a UML diagram.
None of the above
Comments may span one or more lines.
Comments must span more than one line.
None of the above
Explanation / Answer
1) Method names are listed in the bottom section of a UML diagram.
Explanation: We knpow that In UML there are three section, one for name, attributes and methods
First is class name, then all the attributes and then comes the methods. Hence methods names are present in bottom of uml
2) Comments may span one or more lines.
3) All of the above
4) constructor
5) encapsulation
6) all attributes and methods in a class
7) black box
8) Encapsulation assists with the creation of code that is reusable.
9)public: int getAge(){return age;}, public: void setName(int newAge){age = newAge;}
10) private: string name;
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.