gs gs108 Namespaces, Preprocessors and Networking - Type Interface - Quiz No.1
gs gs108 CSharp Quiz
This quiz belongs to book/course code gs gs108 CSharp of gs organization. We have 110 quizzes available related to the book/course CSharp. This quiz has a total of 10 multiple choice questions (MCQs) to prepare and belongs to topic Namespaces, Preprocessors and Networking. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
public class Generic<T> { Stack<T> stk = new Stack<T>(); public void push(T obj) { stk.Push(obj); } public T pop() { T obj = stk.Pop(); return obj; } } class Program { static void Main(string[] args) { Generic<int> g = new Generic<int>(); g.push("Csharp"); Console.WriteLine(g.pop()); Console.ReadLine(); } }
class Gen<T> { T ob; }
class a { public void x(int p, double k) { Console.WriteLine("k : csharp!"); } }
delegate void del(int i); x s = new x(); del d = new del(ref s.x); d(8, 2.2f);
delegate void del(int p, double k); del d; x s = new x(); d = new del(ref s.x); d(8, 2.2f);
x s = new x(); delegate void d = new del(ref x); d(8, 2.2f);
public Gen(T o) { ob = o; }