Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Program
- {
- static void Main(string[] args)
- {
- parent ch1 = new child1();
- parent ch2 = new child2();
- print(ch1);
- print(ch2)
- }
- public void print(Parent p) {
- p.msg();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement