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 in C# by krishna
• 2,140 points
17 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 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 in C# by krishna
• 2,140 points
20 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 in C# by jyoti
• 1,240 points
11 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 in C# by krishna
• 2,140 points
11 views
0 votes
1 answer

Convert VB.NET --> C# Projects

You may decompile whole Assemblies into Visual ...READ MORE

answered May 30 in C# by rajiv
• 1,620 points
24 views
0 votes
1 answer

Examples of dynamic polymorphism in c#

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

answered Jun 7 in C# by pranav
• 2,580 points
30 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
261 views
0 votes
1 answer

Writing SEO friendly url gets infinite loop asp.net

you should know that regex avoid cases ...READ MORE

answered Feb 11 in Others by narikkadan
• 11,280 points
179 views
0 votes
0 answers

How to get Bitcoin value for corresponding USD value in ASP.NET C#?

I want to get the Bitcoin value ...READ MORE

Mar 1 in Blockchain by Soham
• 8,740 points
129 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 in C# by jyoti
• 1,240 points
25 views
0 votes
1 answer

Beginners book for .NET and C#

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

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