Podcast
Questions and Answers
Which of the following statements about a class is correct?
Which of the following statements about a class is correct?
- A class represents the initial state of an object
- A class can only have attributes and no methods
- A class is a template for creating objects (correct)
- A class name is not necessary in a class diagram
What does the plus sign (+) represent in a class diagram?
What does the plus sign (+) represent in a class diagram?
- Protected access modifier
- Public access modifier (correct)
- Private access modifier
- Package local access modifier
Where are the class attributes written in a class diagram?
Where are the class attributes written in a class diagram?
- Before the column in the last partition
- After the column in the uppermost partition (correct)
- After the column in the last partition
- Before the column in the uppermost partition
Which of the following is NOT a building block of a class diagram?
Which of the following is NOT a building block of a class diagram?
What is the purpose of a class in object-oriented programming?
What is the purpose of a class in object-oriented programming?
What information is written in the uppermost partition of a class diagram?
What information is written in the uppermost partition of a class diagram?
What does the minus sign (-) represent in class visibility notation?
What does the minus sign (-) represent in class visibility notation?
Where are the types of class attributes written in a class diagram?
Where are the types of class attributes written in a class diagram?
What does the tilde sign (~) represent in class visibility notation?
What does the tilde sign (~) represent in class visibility notation?
What does a class diagram represent?
What does a class diagram represent?