Question: Lab 30 Step1: Define a class that has five member fields. public class Yourclass Step2: Also define a constructor that has five arguments to initialize

Lab 30 Step1: Define a class that has five member fields. public class Yourclass Step2: Also define a constructor that has five arguments to initialize the member fields. public Yourclass ( five arguments) Step3: Defined five member methods to display each member field. The five methods do not have a return value. public void display_something () Step4: Define another class that has the Main method. In the Main method, create an object of the class you defined at the step1 and initialize the member fields of the object using the constructor you defined at the step2. Yourclass yc = new Yourclass ( five arguments ) Step5: In the Main method, display the five member fields of the object using the member methods you defined at the step 3. yc.display_something ()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
