Guest User

Untitled

a guest
Apr 20th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. // Code from Project 1
  2. namespace FirstAssembly
  3. {
  4. public class FirstClass
  5. {
  6. private protected static void FirstMethod()
  7. {
  8. Console.WriteLine("Private protected method called...");
  9. }
  10. }
  11. }
  12.  
  13. // Code from Project 2
  14. using FirstAssembly;
  15. namespace SecondAssembly
  16. {
  17. public class SecondClass : FirstClass
  18. {
  19. public static void SecondMethod()
  20. {
  21. FirstMethod(); // No access to the base class since it is private protected.
  22. }
  23. }
  24. }
Add Comment
Please, Sign In to add comment