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

Are structs value types c#?

853


Why do we use inheritance in c#?

870


What is a verbatim string literal and why do we use it?

906


Which is faster hashtable or dictionary?

924


Are c# strings null terminated?

978


What is the difference between class and namespace?

923


What is a static property. Give an example?

894


Differentiate between object pooling and connection pooling in c#?

939


What is a class in unity?

850


What is difference between throw and throws in c#?

827


In c#, what will happen if you do not explicitly provide a constructor for a class?

916


What is the purpose of a constructor in c#?

838


What are the 2 broad classifications of fields in c#?

894


Why do we need to override in c#?

918


How can an inner class access the members of outer class?

939