1. This code will not compile, because method doYourJob() in interface Guard must be defined abstract.
  2. This code will not compile, because class Dog must implement method doYourJob() from interface Guard.
  3. This code will not compile, because in the declaration of class Dog we must use the keyword extends instead of implements.
  4. This code will compile without any errors.
5 views

1 Answers

Answer: Option 4

Let'

5 views

Related Questions