Bloomberg LP Interview Question
Software Engineer / DevelopersCountry: United States
Is it possible to cast a object of type 'VideoScreen' to a Interface reference of type 'Scrollable', how do u justify this ?
I thought only Parent reference can be assigned child's object due to polymorphism, can a object be assigned to a interface reference just because it extends that interface ?
Is it possible to cast a object of type 'VideoScreen' to a Interface reference of type 'Scrollable', how do u justify this ?
I thought only Parent reference can be assigned child's object due to polymorphism, can a object be assigned to a interface reference just because it extends that interface ?
Is it possible to cast a object of type 'VideoScreen' to a Interface reference of type 'Scrollable', how do u justify this ?
I thought only Parent reference can be assigned child's object due to polymorphism, can a object be assigned to a interface reference just because it extends that interface ?
d
- Anonymous October 25, 2011