Question: B. Write a Demo class that contains the main method. In the main method do the following: 1. Create an object of the Software

B. Write a Demo class that contains the main method. In the main method do the following: 1. Create an object

B. Write a Demo class that contains the main method. In the main method do the following: 1. Create an object of the Software class named sf1 using the default constructor. 2. Create another object of the Software class named sf2 using the parameterized constructor. Ask the user to input the softwareld, softwareType, and softwarePrice. 3. Call the method setSoftware Price for the sf1 object to set the price of that object to be 15.0 4. Print the value of the softwaren static data member. 5. Call the copiesSoftLicPrice(2) then call the showSoftDetails method using the object sf1. 6. Call the copiesSoftLicPrice(5) then call the showSoftDetails method using the object sf2. B. Write a Demo class that contains the main method. In the main method do the following: 1. Create an object of the Software class named sf1 using the default constructor. 2. Create another object of the Software class named sf2 using the parameterized constructor. Ask the user to input the softwareld, softwareType, and softwarePrice. 3. Call the method setSoftware Price for the sf1 object to set the price of that object to be 15.0 4. Print the value of the softwaren static data member. 5. Call the copiesSoftLicPrice(2) then call the showSoftDetails method using the object sf1. 6. Call the copiesSoftLicPrice(5) then call the showSoftDetails method using the object sf2.

Step by Step Solution

3.38 Rating (157 Votes )

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 Computer Network Questions!