how we declare interface

Answers were Sorted based on User's Feedback



how we declare interface..

Answer / merinkmathew

public interface Iproduct
{
string ID
{
get;
set;

}

double Price { get; set; } double
CalculatePrice();
}


Is This Answer Correct ?    12 Yes 1 No

how we declare interface..

Answer / 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

More ASP.NET Interview Questions

How do you relate an aspx page with its code behind Page?

2 Answers   Accenture,


Explain model, view and controller represent in an mvc application? : asp.net mvc

0 Answers  


write six HTTP request method?

4 Answers   IBM,


What are skins?

1 Answers  


version information is mentioned in which file

3 Answers   AG Technologies,






You have been given the task of designing a web services to expose the data that is stored in a database on the server. In order to successfully build the web services, you need to import some namespaces. What is the minimum namespace you need to import? a) System.Web b) System.WebServices c) System.Web.Services d) System.Web.ServiceModel

2 Answers   Syntax Softtech,


What is the function of the ViewState property?

0 Answers   MindCracker,


Which is the namespace used to write error message in event Log File?

1 Answers  


how many session modes are available?some brief explnation

1 Answers  


Why asp.net mvc is better than asp.net? : Asp.Net MVC

0 Answers  


Define data caching?

0 Answers  


How do you define authentication in Web.Config?

2 Answers   Patni,


Categories