Maha

Maha

  • NA
  • 0
  • 325.3k

Class and Type

Aug 28 2012 8:54 AM
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)