• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Sybex CSG 11 - page 378

 
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following example code appears on page 378, illustrating interface usage:


The text then states "In this example, the Owl class implements the HasBigEyes interface..." - but it doesn't, it implements the same two interfaces that HasBigEyes does, but it doesn't implement that interface.
 
Ranch Hand
Posts: 430
8
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Michael Reeve wrote:
The text then states "In this example, the Owl class implements the HasBigEyes interface..." - but it doesn't, it implements the same two interfaces that HasBigEyes does, but it doesn't implement that interface.


Welcome to Coderanch!

Didn't find that in the errata. You are correct!  CSG appears to have the same typo.
 
author & internet detective
Posts: 40354
819
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good catch. The text is correct. We meant for Owl to implement HasBigEyes
 
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic