using System;
namespace demoapp
{
// We use < > to specify Parameter type
public class GFG<T>
// private data members
private T data;
// using properties
public T value
// using accessors
get => this.data; // using property expression-bodied
set => this.data = value;
}
// vehicle class
class Vehicle
// Main method
static void Main(string[] args)
// instance of string type
GFG<string> company = new GFG<string>();
company.value = "Tata motors";
// instance of float type
GFG<float> version = new GFG<float>();
version.value = 6.0F;
// display Tata motors
Console.WriteLine(company.value);
// display 6
Console.WriteLine(version.value);