The document contains code for two C++ programs. The first program defines a line class with methods to set the length of a line and get its length, and demonstrates creating a line object and setting/getting its length. The second program defines a student class with data members for name, roll number, age, gender, address and percentage, and includes void methods to input student details.
The document contains code for two C++ programs. The first program defines a line class with methods to set the length of a line and get its length, and demonstrates creating a line object and setting/getting its length. The second program defines a student class with data members for name, roll number, age, gender, address and percentage, and includes void methods to input student details.
The document contains code for two C++ programs. The first program defines a line class with methods to set the length of a line and get its length, and demonstrates creating a line object and setting/getting its length. The second program defines a student class with data members for name, roll number, age, gender, address and percentage, and includes void methods to input student details.