Font size:
Print
Question:
1. Runtime error
2. Varible entered is 5
3. Error
4. None of the mentioned
Check Answer
What is the output of this program?
class sample
{
private;
int var;
public;
void input()
{
cout<<var;
}
void output()
{
cout<<"Variable entered is";
cout<<var<<"\n"
}
}
void main()
{
sample object;
object.input();
object.output();
object.var();
}
1. Runtime error
2. Varible entered is 5
3. Error
4. None of the mentioned
Check Answer