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

What is difference between .net and c#?

938


What does void mean unity?

952


What are the differences between value types and reference types?

1132


Why attributes are used in c#?

897


What are the collection types can be used in c#?

885


How many constructors can a class have in c#?

916


Differentiate between static class and singleton instance?

1027


Explain lock, monitors, and mutex object in threading.

917


What is the difference between a field and a property in c#?

938


what is the difference between a struct and a class in c#?

1159


What is access modifier in c#?

900


What is the difference between abstract and abstraction?

859


How do I format a string in c#?

854


How do I format in c#?

870


What is tochararray in c#?

949