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 web and window application?

904


Is collection a data structure?

988


Why dataset is used in c#?

1022


What is a predicate in c#?

970


What is a method c#?

1058


Is c sharp free?

969


What is an array class?

1180


Explain how do I get deterministic finalization in c#?

971


How does bitwise xor work?

961


What is the system namespace?

962


what is IComparable

1042


explain the features of static/shared classes.

993


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

933


Is c# scripting language?

945


Can we extend static class in c#?

960