Advertisement
Guest User

Untitled

a guest
Aug 27th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. public class A
  2. {
  3. public A()
  4. {
  5. Console.WriteLine("мир!");
  6. }
  7. }
  8.  
  9. public class B
  10. {
  11. public B()
  12. {
  13. Console.WriteLine("Привет ");
  14. }
  15. }
  16.  
  17. public class A
  18. {
  19. public A()
  20. {
  21. Console.Write("Hello ");
  22. }
  23. }
  24.  
  25. public class B: A
  26. {
  27. public B() : base()
  28. {
  29. Console.Write("world!");
  30. }
  31. }
  32.  
  33. class Program
  34. {
  35. static void Main(string[] args)
  36. {
  37. var b = new B();
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement