Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. class A
  2. {
  3. public A (float x, short y)
  4. {
  5. Console.Write(1);
  6. }
  7. public A(float x, byte y)
  8. {
  9. Console.Write(2);
  10. }
  11. public A(double x, int y)
  12. {
  13. Console.Write(3);
  14. }
  15. public A(byte x, byte y,byte z):this (x,y)
  16. {
  17. Console.Write(4);
  18. }
  19. }
  20. class MainClass
  21. {
  22. public static void Main(string[] args)
  23. {
  24. byte x = 1, y = 1, z = 1;
  25. A o = new A(x, y, z);
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement