Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

program to interface principle  RSS feed

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, just wondering if anyone could expand on the 'program to an interface' principle.

From what i've read it's about controlling dependencies....umm and perhaps a way to do this is to use interfaces??

sorry couldn't find much out there.
 
Ranch Hand
Posts: 4632
 
Java Cowboy
Sheriff
Posts: 16082
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nerd Gerl, is your name really "Nerd Gerl"? Did you read the JavaRanch official policy on registered names?
 
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See The FAQ, too. Probably a friendlier place to start.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!