X Viva
X Viva
3. A constructor is always:
1. private
2. protected
3. secure
4. public
1. Parameterized constructor
2. Non-parameterized constructor
3. Copy constructor
4. Default constructor
1. A member function having the same name as that of the class name is called constructor.
1. The compiler supplies a special constructor in a class that does not have any constructor.
True
Question 1
Output
12
Question 2
true
Question 3
int x = 90;
char c = (x<=90)? 'Z' : 'I';
Output
Question 4
Output
false
Question 5
Output
(a) 200
(b) 400
Explanation
Question 6