Deal of The Day! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
US
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Amazon
Google
CompTIA
SAP
VMware
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ServiceNow
Dell EMC
CheckPoint
Linux Foundation
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
Zend Discussions
Exam 200-710 Topic 6 Question 69 Discussion
Zend Exam 200-710 Topic 6 Question 69 Discussion
Actual exam question for Zend's 200-710 exam
Question #: 69
Topic #: 6
[All 200-710 Questions]
Which of the following code snippets is correct? (Choose 2)
A
interface Drawable {
abstract function draw();
}
B
interface Point {
function getX();
function getY();
}
C
interface Line extends Point {
function getX2();
function getY2();
}
D
interface Circle implements Point {
function getRadius();
}
Show Suggested Answer
Hide Answer
Suggested Answer:
A
by
Tarra
at
Jul 03, 2024, 12:28 AM
Limited Time Offer
25%
Off
Get Premium 200-710 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
Jeannetta
2 months ago
Wait, I thought interfaces were for storing user data. This coding stuff is way over my head.
upvoted
0
times
Heike
1 months ago
Don't worry, coding can be complex but with practice, you'll get the hang of it!
upvoted
0
times
...
Lashawnda
2 months ago
Option B and D are correct because they define methods that must be implemented by classes that use the interfaces.
upvoted
0
times
...
Buck
2 months ago
Interfaces in coding are used to define a set of methods that a class must implement.
upvoted
0
times
...
...
Tomoko
2 months ago
A and B, easy peasy. Interfaces are like the Highlander - there can be only one abstract method per interface!
upvoted
0
times
Deeann
24 days ago
A and B, easy peasy. Interfaces are like the Highlander - there can be only one abstract method per interface!
upvoted
0
times
...
Lorrie
29 days ago
B) interface Point { function getX(); function getY(); }
upvoted
0
times
...
Casandra
1 months ago
A) interface Drawable { abstract function draw(); }
upvoted
0
times
...
...
Emily
3 months ago
C looks good to me. Extending an interface to add more methods makes sense.
upvoted
0
times
Tamesha
1 months ago
D is incorrect because interfaces cannot implement other interfaces.
upvoted
0
times
...
Fannie
2 months ago
C is correct because it extends the Point interface and adds more methods.
upvoted
0
times
...
Janey
2 months ago
I agree, B is correct because it defines two functions without any implementation.
upvoted
0
times
...
Pearly
2 months ago
I think A is incorrect because 'abstract' is not a valid keyword for a function in an interface.
upvoted
0
times
...
...
Denna
3 months ago
D is definitely wrong. Interfaces can't implement other interfaces, they can only extend them.
upvoted
0
times
...
Miesha
3 months ago
I'm not sure, but I think C and D make more sense.
upvoted
0
times
...
Lacresha
3 months ago
I think A and B are the correct answers. Interfaces can only have abstract methods, and they can't inherit from concrete classes like Point.
upvoted
0
times
Dominque
2 months ago
So A and B are the correct code snippets.
upvoted
0
times
...
Vallie
2 months ago
That's right, they can't inherit from concrete classes like Point.
upvoted
0
times
...
Kattie
2 months ago
Yes, interfaces can only have abstract methods.
upvoted
0
times
...
Regenia
3 months ago
I think A and B are the correct answers.
upvoted
0
times
...
...
Noah
3 months ago
I disagree, I believe B and D are the correct ones.
upvoted
0
times
...
Wei
4 months ago
I think A and B are correct.
upvoted
0
times
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
Jeannetta
2 months agoHeike
1 months agoLashawnda
2 months agoBuck
2 months agoTomoko
2 months agoDeeann
24 days agoLorrie
29 days agoCasandra
1 months agoEmily
3 months agoTamesha
1 months agoFannie
2 months agoJaney
2 months agoPearly
2 months agoDenna
3 months agoMiesha
3 months agoLacresha
3 months agoDominque
2 months agoVallie
2 months agoKattie
2 months agoRegenia
3 months agoNoah
3 months agoWei
4 months ago