yuvaraj k

yuvaraj k

  • NA
  • 51
  • 800

interface and c# Using Values Add...Pls Solve

Aug 4 2015 3:06 AM
//interface and c# Using Values Add  
interface add
{
int add(int a, int b);
}
 
class adds : add
{
public int c;
public int add(int a, int b)
{
c = a + b;
return c;
}
}
///default.cs
adds c1 = new adds();
add val_add = new adds();
val_add.add(15, 15);
Response.Write(c1.c);
 
 

Answers (8)