Default Constructor

You are required to implement a class Student with the following field:

  • age (integer)

Implement a default constructor that initializes age to 0.

Create an object of the class Student and return the object.

Note:

  • The class name must be exactly Student
  • The field name must be exactly age and it should be public
  • The default constructor must initialize age to 0

Constraints:

  • No input required.
0
class Solution {
public:
Student createStudent() {
//your code goes here
}
};
Test Case

Input:

Input