1. Explain what a default constructor is and why it is used. Provide code segment to illustrate a simple class, create a constructor method to intialize a private property, and demonstrate how an object would be instantiated with your constructor.
2. Provide a C++ code segment that reads data from a text file using a while loop. Use comments to explain what key lines of code are doing.