Question: Java Program Write a class encapsulating the concept of a home, assuming that it has the following attributes: the number of rooms, the square footage,
Java Program

Write a class encapsulating the concept of a home, assuming that it has the following attributes: the number of rooms, the square footage, and whether it has a basement. Write a client program that creates five Home objects, writes them to a file as objects, then reads them from the file as objects, outputs a description of each object using the toString method (which the Home class should override), and outputs the number of Home objects. When reading the objects, you should assume that you do not know the number of objects in the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
