10. Write a class for 'LabRoom'; it will have member fields for no of chairs, no of tables, no of computers. The class should also contain methods to add or remove these elements: the amount to be...


Java program try to do in 30 mins


10. Write a class for 'LabRoom'; it will have member fields for no of chairs, no of tables, no of<br>computers. The class should also contain methods to add or remove these elements: the<br>amount to be added or removed should be given as parameter. There should be 2<br>overloaded add methods: one taking 3 parameters and the other taking no parameters<br>(write the body of the methods as per your wish). Now, Create 2 LabRoom objects with<br>arbitrary values and call and use the add() and remove() methods.<br>

Extracted text: 10. Write a class for 'LabRoom'; it will have member fields for no of chairs, no of tables, no of computers. The class should also contain methods to add or remove these elements: the amount to be added or removed should be given as parameter. There should be 2 overloaded add methods: one taking 3 parameters and the other taking no parameters (write the body of the methods as per your wish). Now, Create 2 LabRoom objects with arbitrary values and call and use the add() and remove() methods.

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here