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 / rajat

No you cannot.
1. Because an interface cannot contain fields.
2. For methods also, you cannot give an access modifier
(public / private). By default, the methods will be public

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I edit a dll file?

890


What is delegates and events?

927


what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?

2087


What do u mean by thread safe?

933


Value Type and Reference Type Data type in C#?

963


What is different between Implicit conversion and Explicit conversion in C#?

1060


What are strong name assemblies?

972


Explain circular reference in c#?

946


What are custom exceptions?

927


What is asynchronous one-way calls?

984


Explain the three services model (three-tier application). Presentation (ui), business (logic and underlying code) and data (from storage or other sources).

917


What are circular references? How garbage collection deals with circular references.

918


What is the difference between list and array in c#?

1042


What are the differences between static, public and void in c#?

1068


Why do we use struct in c#?

968