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...

Can we define a variable with the access modifier private
in an interface?

Answer Posted / murugavel

No..Not possible. Interface is only having methods. We can't
declare variables on it. The methods also be a public.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 3 elements of delegation?

959


Can we have static indexer in c#?

905


Are all methods virtual in c#?

941


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

923


Why is dll used?

989


What is a namespace server?

906


Overloaded constructor will call default constructor internally?

1036


What are logical operators in c#?

946


What is extension method in c sharp?

895


How is a loop recorder monitored?

925


Why is ienumerable used?

878


What is web forms in c#?

922


Is it good to use var in c#?

856


What is task parallel library?

1029


What is the difference between abstract class and interface in c#?

949