Question:
Write the output of the following C++ program code:
Note: Assume all required header files are already being included in the program.
class Eval
{
char Level;
int Point;
public:
Eval() {Level='E';Point=0;}
void Sink(int L)
{
Level=L;
}
void Float(int L)
{
Level += L;
Point++;
}
void Show()
{
cout<<Level<<"#"<<Point<<endl;
}
};
void main()
{
Eval E;
E.Sink(3);
E.Show();
E.Float(7);
E.Show();
E.Sink(2);
E.Show();
}
C. Sir| Created: 7-Jan-2019 | Updated: 22-Mar-2026|CBSE12A-2015
