Interface IData { void Save(); } abstract class AData { public abstratct void Save(); }
--===For Interface Interface IData { void Save(); } public class Sql:IData { } public class Oracle:IData { } public class Client { IData _data=null; Public Client(IData data) { _data=data; } } --===For abstarct class abstract class AData { public abstratct void Save(); } public class ABSql:AData { } public class ABOracle:AData { } public class Client { AData _data=null; Public Client(AData data) { _data=data; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)