Question: In NetBeans, implement your account class diagram created earlier. Complete the following: Your Java project should include 3 classes: Account.java, Services.java, and Supplies.java. There should

In NetBeans, implement your account class diagram created earlier. Complete the following:

Your Java project should include 3 classes: Account.java, Services.java, and Supplies.java. There should be implemented constructors for each class. The toString() method should be overridden to provide a readable string representation of each object. Getters and setters need to be implemented to enforce data hiding. The calculateSales() method should be implemented for all classes Consider having the calculateSales() as an abstract method for the Abstract Account class. In addition, you need to create a test class companySales.java that tests each subclass's constructor, toString(), and computeSales(). You need to create an instance of each subclass. Input can be hard-coded or entered by the user. You need to call the method calculateSales() for each instance. You need to print each class info using its method toString(). Code should be fully commented. Program flow should be logical. Submit your zipped NetBeans project.

This Submission Node will demonstrate the following:

How to create a base class How to extend a base class to create new classes How to use override methods How to create an abstract class and method How to apply inheritance

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!