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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!