Choose the correct answer:

Consider the following class definition:
Which diagram fragment shows an instance of the Company class in which name has the value OMG?
A)

B)

C)

D)

E)

F)

To represent an instance of a class in a UML Object Diagram, the standard notation is to specify the instance name followed by a colon and the class name, and then list the attribute values within the compartment.
The class definition for Company specifies that there is one attribute, name, of type String.
An instance of Company where the name attribute has the value 'OMG' would be shown as follows:
InstanceName : ClassName attributeName = attributeValue
In the provided options, Option D correctly represents an instance of the Company class with the name attribute set to 'OMG'. The name of the instance is not specified, which is allowed in UML when the instance name is not important or is understood from the context.
Thus, the correct answer is:
D . Option D
Darell
2 months agoCletus
2 months agoHelene
2 months agoJuliana
3 months agoJesusa
3 months agoLuke
3 months agoWade
3 months agoRenea
4 months agoShelba
4 months agoLavera
4 months agoStephaine
4 months agoAnnmarie
4 months agoTiera
5 months agoTerina
5 months agoBilli
11 months agoEugene
11 months agoHerminia
11 months agoTheresia
9 months agoAyesha
9 months agoAudrie
9 months agoLuis
9 months agoCorrinne
9 months agoDesiree
9 months agoCarissa
10 months agoGeorgeanna
10 months agoShannan
11 months agoTalia
11 months agoWilford
10 months agoGracie
10 months agoAlyce
10 months agoCiara
11 months agoEdison
11 months agoAnastacia
10 months agoAudry
11 months agoBong
11 months agoGladys
11 months agoTalia
11 months agoJose
11 months agoEdmond
11 months ago