Please use JAVA only
Write a Printer device, which also derives from generic devices,but this time includes the notion of jobs to be printed. Like Disk,a Printer should extend from Device. Additionally, a Printer shouldhave an intwhich represents the number of jobs currently in theprinter’s print queue. We can add or complete print jobs, or checkthe number currently in the queue, but for this assignment that isthe extent of what we expect (we will not be passing full-fledgedprint jobs to the class, we will just keep track of the number ofjobs).
The class should implement the following public methods:
- public Printer(String name, int
OR
PayPal Gateway not configured
ORPayPal Gateway not configured