Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Why can?t you specify the accessibility modifier for
methods inside the interface?

Answer Posted / hafiz usman majeed

as by default public access is provided in c-sharp.net
classes and interfaces, and we use interfaces for
accompolishing the purpose of multiple inheritence we must
redefine all of the methods of interface in its inherited
class that implements it so all of these methods should be
publically accessible.

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the keyword “virtual” declare for a method or property?

912


Is c sharp open source?

822


What is join in c#?

890


In a memory when you Box and Unbox a value-type what happens?

876


What is Custom attribute? How to create? If I'm having custom attribute in an assembly, how to say that name in the code?

891


Why is dll used?

958


How to sort an int array in c#?

908


Why do we need to serialize data?

845


What is writeline in c#?

829


What is the difference between int16 and int32 in c#?

882


Why do we need delegates in c#?

921


What method is used to sort the elements of the array in descending order?

913


How to use the sreamReader class to read form a text file?

949


Can the nested class access, the containing class. Give an example?

838


Will the following code compile?

916