Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class A
- {
- public void ShowA()
- {
- Console.WriteLine("Class A");
- }
- }
- class B:A
- {
- public void ShowB()
- {
- Console.WriteLine("Class B");
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- A a = new A();
- A b = new B();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement