Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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?
 
Sheriff
Posts: 26963
84
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.
reply
    Bookmark Topic Watch Topic
  • New Topic