public class Csharp{ public void subject<S>(S arg) { Console.WriteLine(arg); }}class Program{ static Void Main(string[] args) { Csharp c = new Csharp(); c.subject("hi"); c.subject(20); }}
a) Run time exception error
b) Compile time error
c) Code runs successfully and prints required output
d) None of the mentioned
In the following C# code, which statements are perfectly valid?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
In the following C# code, which statements are perfectly valid?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!