how we declare interface

Answer Posted / merinkmathew

public interface Iproduct
{
string ID
{
get;
set;

}

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


Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of autowireup in asp.net?

556


Difference between application events and session events

586


Differentiate between a page theme and a global theme?

519


What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC

492


Explain the difference between debug.write and trace.write? When should each be used?

554






i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

1488


I have created a configuration setting in my web.config and have kept it at the root level. How do I prevent it from being overridden by another web.config that appears lower in the hierarchy?

540


What is side-by-side execution? Can two applications, one using a private assembly and other using a shared assembly, be stated as side-by-side executables?

563


Explain the concept of event bubbling in ASP.NET?

580


What is protected configuration?

599


What is a response cookie?

606


What is asp short for?

557


Is asp.net 64-bit enabled? How?

580


What is http response header?

555


What is request and response in asp.net?

509