Answer :
Answer:
The answer is "Option B"
Explanation:
In the given code, a class "DateType" is declared, inside the class, four methods "Initialize, GetYear, GetMethod, and GetDay" is defined, in which the "Initialize" method does not return any value and other methods return a constant type value, which means it value can't be changed.
Inside the class three integer variable is defined, that is"year, month, and day". In the "GetDay" method call, it first creates the class object "day1", which is already defined in question and call the method by dot (.), that's why only choice b is correct.