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();
}
Class and Type
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Aug 28, 2012, 5:00 AM EDT
However, there are other types such as structs, enums, interfaces, delegates, arrays and pointers in C#.
int, double etc are aliases for Int32, Double etc which are structs in the .NET framework.
Posted Aug 28, 2012, 5:02 AM EDT