Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A
- {
- public A (float x, short y)
- {
- Console.Write(1);
- }
- public A(float x, byte y)
- {
- Console.Write(2);
- }
- public A(double x, int y)
- {
- Console.Write(3);
- }
- public A(byte x, byte y,byte z):this (x,y)
- {
- Console.Write(4);
- }
- }
- class MainClass
- {
- public static void Main(string[] args)
- {
- byte x = 1, y = 1, z = 1;
- A o = new A(x, y, z);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement