01E-2016
CBSE12D-2016
Problem Statement - 01E-2015
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(); }
Solution
CSKC| Created: 7-Jan-2019 | Updated: 15-Jan-2019|CBSE12A-2015