What is the concept of creating class instance using interface name?
问题 what is the concept of set variable or object or i don't know what it's called when i create instance of class and putting in left hand the name of interface,,, I Know that we can't create and object of type interface. Only I need more clarification what this process named or what is the details done by .Net when I declare these type of object. IDataReader oSQLReader = new SqlDataReader(); IDataReader oOLEReader = new OleDbDataReader(); 回答1: What happens exactly is that you are creating an