private static void GenericMethodExampleOutput() { // creating object of class GFG GenericMethod p = new GenericMethod(); // calling Generics method p.Display <int>("Integer", 122); p.Display <char>("Character", 'H'); p.Display <double>("Decimal", 255.67); }