I'm not sure I agree with the 1st answer, "low coupling", which I assumed to be the same as "loose coupling".
"Using a reference variable of an interface type" to me is very tightly coupled.
Let me know if there is something I am missing.
About Question com.enthuware.ets.scjp.v6.2.76 :
Moderator: admin
-
- Site Admin
- Posts: 10061
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.76 :
You did not quote the complete option. It says, "Using a reference variable of an interface type instead of the class implementing that interface."
Using an interface is indeed low coupling as compared to using the class.
HTH,
Paul.
Using an interface is indeed low coupling as compared to using the class.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 120 guests