how we declare interface

Answer Posted / venu

public interface Service
{
int add(int a,int b);
int mul(int c,int d);
}


by default access modifiers in nethods are public

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please briefly explain the usage of global.asax?

705


Define a static class?

709


Is session server side or client side?

692


What is the default authentication mode for asp.net?

769


What is marshalling ? Is it a part of asp.net ?

802


Why is mvc better than asp.net?

733


What is masterpage?

697


What does session_start () do?

811


What is difference between datalist and gridview?

763


To display data in a Repeater control which template you provide?

764


What is asp.net master page?

737


What are the new features implemented in ASP.NET?

787


there is two functions function a and function b like fun a(){.... ..... } fun b() { } in function b i write the coding to add two numbers and i need to dispaly the sum result in function a with out using global variable. how we do?

2547


8. Why do you want to work here?

1647


What is server side in asp.net?

688