JAVA only, please
Write a Disk device, which is more specific than a genericdevice, and thus Disk should extend Device. Since we are extendingthe class, it will automatically inherit all of the functionalityof the Device class. We will just add some specifics associatedwith disks – the notion of disk size, which should be stored as along because disk sizes can be relatively large.
Something to think about: since we are not defining enabled() ordisabled() here, what should happen if we try to call them for someDisk object?
The class should implement the following public methods:
- public Disk(String name, int id, long size) Initialize thedevice
OR
PayPal Gateway not configured
ORPayPal Gateway not configured