how we declare interface

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

List the asp.net validation controls?

521


How can you implement encapsulation in asp.net?

11295


What is difference between cookies and cache?

514


How many web.config files can I have in an application?

537


Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.

2591






code for "For every 5days system has to create 1text file with the corresponding date and it has to store in c-drive" by using web applications

1409


Which protocol is used in a web api?

559


What are the difference between overriding and overloading?

496


What are the differences between the response.write() and response.output.write()?

529


What are the security types in ASP/ASP.NET? Different Authentication modes?

556


What are the different types of validation controls in asp.net?

520


How can you enable impersonation in the web.config file?

558


What is difference between session and cookies?

543


Explain significance of routing? : asp.net mvc

550


What is the latest version of asp.net?

533