CJCoding With Joseph
15per day

Abstract Subscription Class

Write an abstract class called Subscription with the following requirements:

- protected String type
- protected double basePrice
- protected boolean multipleUsersAllowed

Methods:
1. A constructor that initializes all fields with parameters
2. A concrete method getMultipleUsersAllowed() that returns the boolean
3. An abstract method calcMonthlyCost() that returns a double

Do NOT write a main method.

Expected Output:

false
10.0
Topics:
Classes
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (sysout, psvm, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.