Object Oriented Programming Basic Concept C

0 votes

Before anything, I understand these aspects

  1. Enum and Interface members are open to the public by default.
  2. Members of the Class, Struct, and Delegate are all private by default.
  3. Public and internal classes can be accessed by non-derived classes of the same class-library (and public, internal, protected internal-members).
  4. Public class can be accessed by non-derived classes from various class libraries (public members only).
  5. Public class can be accessed by derived classes of different classes-libraries (public, protected, protected-internal members).
Now, I want to understand core concepts. Do protected member have internal scope too?
Jun 11, 2022 in C# by krishna
• 2,820 points
658 views

1 answer to this question.

0 votes

Use this link https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/access-modifiers

  • protected internal: The type or member can be accessed by any code in the assembly in which it's declared, or from within a derived class in another assembly.
  • internal: The type or member can be accessed by any code in the same assembly, but not from another assembly. In other words, internal types or members can be accessed from code that is part of the same compilation.
  • protected: The type or member can be accessed only by code in the same class, or in a class that is derived from that class.
answered Jun 17, 2022 by jyoti
• 1,240 points

Related Questions In C#

0 votes
1 answer

How do I turn a C# object into a JSON string in .NET

Newtonsoft.json can be used to accomplish this. ...READ MORE

answered Jun 13, 2022 in C# by krishna
• 2,820 points
715 views
0 votes
0 answers

Compress existing PDF using C# programming using freeware libraries

I've been looking for ways to compress ...READ MORE

Jun 11, 2022 in C# by jyoti
• 1,240 points
558 views
0 votes
0 answers

What are the differences between C#.net and Visual Basic.net

I have some VB.net expertise and would ...READ MORE

Jun 11, 2022 in C# by krishna
• 2,820 points
461 views
0 votes
0 answers

How do I turn a C# object into a JSON string in .NET?

The following is my classes class MyDate { ...READ MORE

Sep 26, 2022 in C# by krishna
• 2,820 points
450 views
0 votes
0 answers

Object Oriented Programming Basic Concept(C#)

As We know The Default Modifier of Class, Struct, ...READ MORE

Dec 9, 2022 in Android by Edureka
• 13,620 points
484 views
0 votes
0 answers

Object Oriented Programming Basic Concept(C#)

We are aware that the default modifier ...READ MORE

Dec 12, 2022 in C# by Roshan
• 300 points
482 views
0 votes
1 answer

Examples of dynamic polymorphism in c#

Check the example of polymorphism below. We ...READ MORE

answered Jun 7, 2022 in C# by pranav
• 2,590 points
856 views
0 votes
1 answer

Authenticate on an ASP.Net Forms Authorization website from a console app

Essentially, we need to record a regular ...READ MORE

answered Sep 20, 2018 in IoT (Internet of Things) by Annie97
• 2,160 points
911 views
0 votes
1 answer

Awesome ASP.NET and C# tutorials for beginners

Go here https://dotnet.microsoft.com/en-us/learn/aspnet They have some nice tutorials ...READ MORE

answered Jun 17, 2022 in C# by jyoti
• 1,240 points
887 views
0 votes
1 answer

Beginners book for .NET and C#

It depends on how proficient you are ...READ MORE

answered Jun 21, 2022 in C# by jyoti
• 1,240 points
438 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP