C# Tips

Today's C# Quiz

Quiz

new keyword in C# is used to creat new object from the type. Which of the followings is not allowed to use new keyword?

Class: var a = new Class1();
Interface : var a = new IComparable();
Struct : var a = new Struct1();
C# object : var a = new object();

Tip

Answer