Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
8
Answers
interface and c# Using Values Add...Pls Solve
yuvaraj k
9y
431
1
Reply
//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);
Post
Reset
Cancel
Answers (
8
)
Next Recommended Forum
maintain horizontal scroll position on autopostback inside
asp button click