Skip to content

Adhouma/Encapsulation-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encapsulation-challenge

/**
 * Create a class and demonstate proper encapsulation techniques
 * the class will be called Printer
 * It will simulate a real Computer Printer
 * It should have fields for the toner Level, number of pages printed, and also whether its a duplex printer 
 * (capable of printing on both sides of the paper).
 * Add methods to fill up the toner (up to a maximum of 100%), another method to simulate printing a page
 * (which should increase the number of pages printed).
 * Decide on the scope, whether to use constructors, and anything else you think is needed.
 */

Releases

No releases published

Packages

No packages published

Languages