include #include #include class eval {char …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
include<iostream.h>
#include<conio.h>
#include<stdio.h>
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()
{clrscr();
eval e;
e.sink(3);
e.show();
e.Float(7);
e.show();
e.sink(2);
e.show();
getch();
}
I can't understand the logic behind its output please explain
Posted by Aman Saxena 7 years, 5 months ago
- 0 answers
ANSWER
Related Questions
Posted by Hanni Pham 1 year, 1 month ago
- 0 answers
Posted by Hanni Pham 1 year, 1 month ago
- 1 answers
Posted by Kandeepan Jothivel 1 year, 4 months ago
- 2 answers
Posted by Priya Shukla 1 year, 3 months ago
- 1 answers
Posted by Prawar Narang 1 year, 3 months ago
- 1 answers
Posted by Syedali Fathima 1 year, 3 months ago
- 1 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app