Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class A
- {
- public A()
- {
- Console.WriteLine("мир!");
- }
- }
- public class B
- {
- public B()
- {
- Console.WriteLine("Привет ");
- }
- }
- public class A
- {
- public A()
- {
- Console.Write("Hello ");
- }
- }
- public class B: A
- {
- public B() : base()
- {
- Console.Write("world!");
- }
- }
- class Program
- {
- static void Main(string[] args)
- {
- var b = new B();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement