Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class StartUp
- {
- static void Main()
- {
- string name = Console.ReadLine();
- int age = int.Parse(Console.ReadLine());
- try
- {
- Child child = new Child(name, age);
- Console.WriteLine(child);
- }
- catch (ArgumentException ae)
- {
- Console.WriteLine(ae.Message);
- }
- }
- }
Add Comment
Please, Sign In to add comment