Question 1: Explain how the end-of-file method is used when reading data from a sequential file. Provide a C++ code segment that reads data from a text file using a while loop.
Question 2: Define objects, class, method, and proprieties and provide code segment that illustrates these terms.