# Define a variable and constructor
namespace GenericsConsole1
{
class Student<T>
{
public T justAnInput;
public Student(T constructorInput)
{ Console.WriteLine(constructorInput);}
}
class Program
{
static void Main(string[] args)
{
Student<string> Gavur;
Gavur = new Student<string>("AAA");
Gavur.justAnInput = "Test me";
Console.ReadKey();
}
}
}}
0 comments:
Post a Comment