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

What does AspCompat="true" mean and when should I use it?

1 Answers   Infogain,


Give an example of cookie abuse.

0 Answers  


How many types is controls is there in Asp.Net?If it means what are types of custom controls?Explain about user controls,Web server controls,Hrml server controls?

1 Answers   Cap Gemini, TCS,


Which method is used to enforce garbage collection in .net?

0 Answers  


What are the different validators in asp.net?

0 Answers  






What are the HTML server controls in ASP.NET?

0 Answers   MindCracker,


What is the sequence of operation takes place when a page is loaded ?

1 Answers  


What is parse in asp.net?

0 Answers  


What are the benefits of Razor View?

0 Answers   NA,


what are Httpmodule and HttpHandler?

3 Answers   Microsoft, Wipro,


How does exception management works in ASP.NET?

0 Answers   Alcatel-Lucent,


Is it possible to develop a single web application using ASP.NET webforms and ASP.MVC?

0 Answers  


Categories