In interview i had been asked for Boxing and Unboxing
and i explained it. After that i asked for Generic Collections
. I explained the below code and from here they asked how boxing operation applied here in the below code. I am not sure about this answer.
public abstract class DataAccess<T, TKey>
{
--CRUD Operations here
}
public class AdminDataAccess : DataAccess<Admin, long>
{
--code here
}