2
Answers

Class and Type

Maha

Maha

12y
1k
1
Please tell me whether class can be considered as a type (int, double & so on). In the 2nd example shows Student type and payingStudent variable.

1)
public static void Main()
{
         Student payingStudent = new Student();
}

2)
public static void Main()
{
         Student payingStudent;

         payingStudent = new Student();
}


Answers (2)