if we cast an object to an interface, won\'t this object be able to call its own methods? in the following example, myObj will only be able to call MyInterface meth
There is no difference. You will only be able to invoke MyInterface interface methods on myObj and mySec. Obviously your code will only compile if both Obj and Sec implement the Myinterface interface.