Type A implements method process().
Both interface and abstract class can implement methods. Interface can do it by default method. So, I think, that correct answer is "A may be an abstract class or an interface.". Why not?
About Question enthuware.ocpjp.v7.2.1251 :
Moderator: admin
-
- Posts: 1
- Joined: Sun Aug 10, 2014 1:32 am
- Contact:
Online
-
- Site Admin
- Posts: 10061
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1251 :
Interface cannot implement anything. Remember that this exam is for Java 7.
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 2
- Joined: Sat Nov 15, 2014 11:13 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1251 :
A must implement an interface. - isn't it true? Type A implements method process(). Or it can be impemented from another abstract class?
Online
-
- Site Admin
- Posts: 10061
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1251 :
Implementing a method doesn't mean implementing an interface. It just means that the class has a non-abstract method. In other words, the class has proper working code for that method. Whether that method is a part of some other interface or abstract class is irrelevant.
HTH,
Paul.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 2
- Joined: Sat Nov 15, 2014 11:13 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1251 :
Thanks, Paul!
Who is online
Users browsing this forum: admin, Bing [Bot] and 114 guests