1. <object id="parent" type="Bll.Parent, HRABLL" > <property name="name" value="parent"/> <property name="age" value="1"/> </object> <object id="child" type="Bll.child, HRABLL" parent="parent" init-method="Initialize"> <property name="name" value="override"/> </object> 2. public interface IPerson { void pr(); } public class Parent:IPerson { public void Initialize() { Console.WriteLine("init"); } public void pr() { Console.WriteLine("parent"); } public string name { get; set; } public int age { get; set; } } public class Child:IPerson { public void Initialize() { Console.WriteLine("init"); } public void pr() { Console.WriteLine("child"); } public string name { get; set; } public int age { get; set; } }