File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about is-a and use of English language on the exam

 
Alexander Danilou
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody with English as a first language?
I'm going thru K&B 6 Master Exam part one questions and question 50 have following statement:
"is-a relationships always rely on inheritance" and indicate that true is correct answer for this statement
How can is-a ALWAYS rely on inheritance when my understanding that SOMETIMES it can rely on interface.
For example if class A implements interface B then we can say that "A is-a B"???
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4116
195
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alexander Danilou wrote:For example if class A implements interface B then we can say that "A is-a B"???


Yes, interface-implementer relationship is a type of inheritance.

Devaka.
 
Alexander Danilou
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Devaka,
OK, so what would you be your answer to the question:
is-a relationships always rely on inheritance - true or false?
Thanks
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4116
195
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alexander Danilou wrote:is-a relationships always rely on inheritance - true or false?

It's true. The reason is what I described in my previous post.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic