Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Inheritance
- {
- public class Employee
- {
- public Employee(string A1, string A2) : this(0, 0, 0, 0)
- {
- Console.WriteLine(A1.ToString() + " hi " + A2.ToString() );
- }
- public Employee(string B1, string B2, string B3) :this ("No Information", "No Information")
- {
- Console.WriteLine(B1+" hi"+B2+" hi"+B3);
- }
- public Employee(int A1, int A2, int B1, int B2)
- {
- Console.WriteLine(A1.ToString() + A2.ToString() + B1.ToString() + B2.ToString());
- }
- public Employee() : this("No Information", "No Information")
- {
- }
- ~Employee()
- {
- }
- }
- class Program
- {
- static void Main()
- {
- Employee e = new Employee();
- Console.Read();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement