- public class A
- {
- public A() { }
- public A(int i) : this() { }
- public A(int i, string s) : this(i) { }
- }
- public class B : A
- {
- public B() { }
- public B(int i) : base() { }
- public B(int i, string s) : base(i, s) { }
- }
Class A constructors call itself constructor by using this keyword. B is derived from A. Constructors of B call base constructors using base keyword.
Happy coding