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 to improve performance of web application asp.net mvc? : Asp.Net MVC

0 Answers  


What are Master pages? How to define a Master page?

3 Answers  


Any alternative to avoid name collisions other then Namespaces?

1 Answers  


Who creates jsessionid?

0 Answers  


What is the question mark in a url?

0 Answers  






Project Architecture (3tier, n-tier)

1 Answers   Syntel,


Explain the difference between page.registerclientscriptblock and page.registerstartupscript?

0 Answers  


What is ViewState ? and how it is managed ?

1 Answers  


How many Controls present in Asp dot net?

7 Answers   TCS,


How you will handle session when deploying application in more than a server? Describe session handling in a webfarm, how does it work and what are the limits?

3 Answers   CoreObjects,


Differentiate between a hyperlink control and a linkbutton control.

0 Answers  


What are the new login controls in asp.net 2.0?

0 Answers  


Categories