Create a project that contains a Pet class. Each object will contain pet name, animal type, breed and color. The form should contain text boxes to enter the information for the pets. A button or menu item should display the pet information on a separate form. Hint: Use a ReadOnly property on the input form to pass the object to the second form.
What I have done so far is create a new class with the name Pet and have instantiated each object with readonly property. I have also created another form where the information entered by the user will be displayed. Guess I kinda need to know what would be the next step? And I want to ensure what I have done so far is correct.
Public Class Pet Private nameString, typeString, breedString, colorString As String 'Public Sub New(ByVal name As String, ByVal type As String, ByVal breed As String, color As String) ' Assign the property values. ' With Me ' .name = name ' .type = type ' .breed = breed ' .color = color 'End With 'End Sub ReadOnly Property name() As String Get Return nameString End Get End Property ReadOnly Property type() As String Get Return typeString End Get End Property ReadOnly Property breed() As String Get Return breedString End Get End Property ReadOnly Property color() As String Get Return colorString End Get End Property End Class