I am going through the Smart Certify training course. I do not understand one of the things on reference assignment.
It says in the form of a chart, that you can assign an interface to a class as long as that class is of type Object.
Since you can not instantiate an interface what is the sense in this? I did the following:
interface1 inter1 = null; //null because i could not init anyway else. Object obj1 = inter1;
this compiled fine, but does not tell me what I need to know. first of all, how can I assign a reference of an actual interface to a class reference? Also, WHY would I want to do that?