Create one class diagram and one object diagram in Violet. Use the same Passengers list in both diagrams. Copy exact diagram text from the plain-text markers without typing the markers.
using System.Collections.Generic;
public class Gate
{
public List<Passenger> Passengers;
}
public class Passenger
{
public string Name;
}Gate and Passenger classesCreate Gate on the left and Passenger on the right. In Passenger's attributes compartment, enter + Name : string. Leave Gate's attributes compartment and both methods compartments empty.
Connect Gate to Passenger with an association arrow pointing toward Passenger. Put + Passengers<Passenger> on the relationship line, 1 at the Gate end, and * at the Passenger end.
Verify that there are two classes and one association. Keep Passengers on the relationship line rather than also adding it inside Gate. Check the arrow direction, labels, and multiplicities.
Model one Gate object whose Passengers list contains three distinct Passenger objects. Their names are Johnson, Xiong, and Smith.
Create an object headed GateA : Gate on the left. Inside it, add one field named Passengers. Leave the field's value area blank so you can connect references from it.
Passenger objectsCreate three separate objects on the right, each headed Passenger. Inside each object, add a field named Name. Enter Johnson in the top object's value area, Xiong in the middle object's value area, and Smith in the bottom object's value area. Enter the values without quotation marks.
Use Violet's object-reference tool to draw three arrows from the same Passengers field in GateA : Gate. Connect one arrow to each Passenger object, with the arrowheads pointing toward the passengers.
Verify that all three passenger headings are Passenger, each passenger has its own Name value, and all three arrows begin at the gate's Passengers field. Keep the text readable and the arrows separated.
Use Airline 2.4 LastName as the base filename, replacing LastName with your last name. Keep Violet's diagram-type suffix and .violet.html extension. Open each saved file and check its labels, values, connections, and readability.
Place the class and object diagram files at the ZIP root. Name the archive Airline 2.4 LastName.zip.
Review the feedback, correct your diagrams, save, rebuild the ZIP, and resubmit as needed.
Keep your editable Violet files for later work.