• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Overriding Methods Declared in Interface

 
Ranch Hand
Posts: 146
2
Mac Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The exam questions at the end of Ch5 in the OCA8 book asks what is and isn't true about interfaces.



One of the possible answers is "A class that implements HasVocalChords must override the method makeSound()". This option is considered incorrect, with the explanation that an abstract class doesn't need to implement the method.

My question, therefore, is: in the exam, should I assume that in any circumstance, unless specifically stated otherwise, the word "class" refers to both concrete and abstract classes?
 
Marshal
Posts: 28000
94
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ashley Bye wrote:My question, therefore, is: in the exam, should I assume that in any circumstance, unless specifically stated otherwise, the word "class" refers to both concrete and abstract classes?



Absolutely. Don't make any assumptions which aren't warranted by the question's wording.
 
Pay attention! Tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic