ICSE Class 10 Computer Applications
Question 23 of 25
Class as Basis of All Computation — Question 23
Back to all questions 23
Question Question 23
Consider the following code fragment assuming that a class namely Student has been defined earlier :
Student stud1;
What is above statement doing ?
The given statement declares a variable stud1 of type Student. It will be used to refer to a Student object. stud1 is a null reference.