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 is a reflection?

0 Answers  


where should write the connection string Show that it will apply whole pages in the website

5 Answers   Symco,


How does the iis work?

0 Answers  


What is the use of placeholder control? Can we see it at runtime?

0 Answers  


Explain weak typing and strong typing.

0 Answers  


How do I open an ashx file in windows 7?

0 Answers  


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

1 Answers   Infogain,


How to disable validator control by client side JavaScript?

0 Answers  


Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.

1 Answers  


What are navigation controls? How many navigation controls are there in ASP.NET 4.0?

0 Answers   UGC Corporation,


With out Web.config can we executes the application?

10 Answers   Valtech,


Is asp.net mvc still used? : Asp.Net MVC

0 Answers  


Categories