Hi,
If I have an interface A.
And another interface that extend it called Aa.
I have a class that implement Aa (donc implement A too).
My third interface (please follow me I am almost done
) called B, have a method that will return an Object that implements Aa.
My question:
I read somewhere that when declaring variable it is better to declare them using their interface if they have one...What should myMethod() return?
1- A myMethod()?
2- Aa myMethod()?
/Daniela