Question: 2. Using Scala, write a class of your choice (not the Employee class that was discussed in class). Include your name in this class so
2. Using Scala, write a class of your choice (not the Employee class that was discussed in class). Include your name in this class so it is identifiable. Example: CarsSaber The class must have at least two (2) fields and two methods/functions. Create two instances (objects) of this class in the main. Using the object created, print the fields and call the method/function at least once. Provide the code (textfile) and a screenshot of your output with the code (on Scastie).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
