locked
Inconsistent accessibility [HELP] RRS feed

  • Question

  • User-59810614 posted

    Hello! 
    I have several errors and I want someone who can help me :D 

    Sunday, July 15, 2018 5:19 PM

Answers

  • User475983607 posted
    The base classes that you declared use access modifiers like private, protected, etc that are less accessible than the inherited classes. You’ll need to change the access modifiers. See the C# programming guide for learning the language constructs.

    https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/access-modifiers
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 15, 2018 6:52 PM
  • User475983607 posted
    The error message indicates different. Perhaps place your project on a git repo so we can see what you are doing.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 15, 2018 8:53 PM

All replies

  • User475983607 posted
    The base classes that you declared use access modifiers like private, protected, etc that are less accessible than the inherited classes. You’ll need to change the access modifiers. See the C# programming guide for learning the language constructs.

    https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/access-modifiers
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 15, 2018 6:52 PM
  • User-59810614 posted

    All of them are public already !

    Sunday, July 15, 2018 7:22 PM
  • User475983607 posted
    The error message indicates different. Perhaps place your project on a git repo so we can see what you are doing.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, July 15, 2018 8:53 PM
  • User-59810614 posted

    Okay, it was my mistake, it's all done now, thank you for help <3 

    Sunday, July 15, 2018 9:04 PM