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

What is the difference between protected and protected internal?

Answer Posted / anusha

Internal:
When Members of a class are declared as internal, then they can be accessed

1. within the class in which they are declared.

2. within the derived classes of that class available within the same assembly.

3. outside the class within the same assembly.

Protected:
When Members of a class are declared as protected, then they can be accessed

1. within the class in which they are declared.

2. within the derived classes of that class available within the same assembly.

3. within the derived classes of that class available outside the assembly.


Protected internal:
When Members of a class are declared as protected internal, then they can be accessed

1. within the class in which they are declared.

2. within the derived classes of that class available within the same assembly.

3. outside the class within the same assembly.

4. within the derived classes of that class available outside the assembly.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why dependency injection is used in c#?

902


Explain the types of Polymorphism.

1044


What is datagrid c#?

880


How many types of constructors are available in c#?

993


Do vs while c#?

834


What is scope c#?

821


Name the control which cannot be placed in mdi?

839


Is c# pass by value?

857


Explain About remoting and web services. Difference between them

907


Is stringbuilder faster than string concatenation c#?

866


If you define a user defined data type by using the struct keyword, is it a value type or reference type?

825


Can we have static indexer in c#?

850


Why do we need static in c#?

898


What will a loop recorder show?

905


Explain About sn.exe

912