02B
2
Observe the following C++ code and answer the questions (i) and (ii).
Note: Assume all necessary files are included.
class EXAM { long Code; char EName[20]; float Marks; public: EXAM() //Member Function 1 { Code=100;strcpy(EName,"Noname");Marks=0; } EXAM(EXAM &E) //Member Function 2 { Code=E.Code+1; strcpy(EName,E.EName); Marks=E.Marks; } }; void main() { ___________________ //Statement 1 ___________________ //Statement 2 }
(i) Which Object Oriented Programming feature is illustrated by the Member Function 1 and Member Function 2 together in the class EXAM?
(ii) Write Statement 1 and Statement 2 to execute Member Function 1 and Member Function 2 respectively.
CBSE12D-2017