Question: Object-Oriented Programming Concepts & Implementing Classes Spring 2023 IV. Individual Programming: You can consu1t your classmates for completing these problems. Submission/Demo process wi11 be discussed

 Object-Oriented Programming Concepts \& Implementing Classes Spring 2023 IV. Individual Programming:

You can consu1t your classmates for completing these problems. Submission/Demo process wi11

be discussed in class. 1. Convert your Student design in Part II

to a Java class (Student.java). You do not need to check for

Object-Oriented Programming Concepts \& Implementing Classes Spring 2023 IV. Individual Programming: You can consu1t your classmates for completing these problems. Submission/Demo process wi11 be discussed in class. 1. Convert your Student design in Part II to a Java class (Student.java). You do not need to check for invalid values. 2. By following the guided questions in Part II, design a class for DebitCard. Then convert the design to a Java class (DebitCard.java). You do not need to check for invalid values. 3. Add code to test the methods of the classes in the main method of the project. Refer to Section III, Q5-Q7. (Tester.java) Look at the Bicycle class UML diagram again on the first page. 1. Which one is a mutator method? Pick one. a. Which property does it set? b. What arguments does it take? c. What does the method return? Object-Oriented Programming Concepts \& Implementing Classes Spring 2023 2. Which one is an accessor method? Pick one. a. Which propesty does it get? b. What arguments does it take? c. What does the method return? III. How to implement a Java Class? A simple class can have one property and a few methods that manipulate that property. Property in the Java class is ca1led an instance variable and the methods are ca11ed instance methods. Instance variables are genera11y private so that other classes cannot modify them direct1y. Instance methods are genera11y pub1ic as other classes interact with the objects of the class via methods. You wi11 learn more about pub1ic vs private in the coming weeks. Create a new project "WK4C1ass". Keep the file that has the main method. Add another Java Class file (Product.java which shou1d not have any main method) with the following code: Create a new project "WK4Class". Keep the file that has the main method. Add another Java Class file (Product.java which shou1d not have any main method) with the fo1lowin code: public class Product \{ private double price; public double getprice () i return price; \} public void setPrice (double p) i price =p; \} \} 1. Draw the UML diagram of the Product class in the space above. 2. What is the instance variable of the Product class

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!