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
PL
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Cisco
Amazon
Google
CompTIA
SAP
VMware
Oracle
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ISC2
ServiceNow
Dell EMC
CheckPoint
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
25 days ago
Wait, I thought interfaces were for storing user data. This coding stuff is way over my head.
upvoted
0
times
Heike
13 days ago
Don't worry, coding can be complex but with practice, you'll get the hang of it!
upvoted
0
times
...
Lashawnda
15 days 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
16 days ago
Interfaces in coding are used to define a set of methods that a class must implement.
upvoted
0
times
...
...
Tomoko
27 days ago
A and B, easy peasy. Interfaces are like the Highlander - there can be only one abstract method per interface!
upvoted
0
times
Casandra
12 days ago
A) interface Drawable { abstract function draw(); }
upvoted
0
times
...
...
Emily
2 months ago
C looks good to me. Extending an interface to add more methods makes sense.
upvoted
0
times
Tamesha
11 days ago
D is incorrect because interfaces cannot implement other interfaces.
upvoted
0
times
...
Fannie
1 months ago
C is correct because it extends the Point interface and adds more methods.
upvoted
0
times
...
Janey
1 months ago
I agree, B is correct because it defines two functions without any implementation.
upvoted
0
times
...
Pearly
1 months ago
I think A is incorrect because 'abstract' is not a valid keyword for a function in an interface.
upvoted
0
times
...
...
Denna
2 months ago
D is definitely wrong. Interfaces can't implement other interfaces, they can only extend them.
upvoted
0
times
...
Miesha
2 months ago
I'm not sure, but I think C and D make more sense.
upvoted
0
times
...
Lacresha
2 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
22 days ago
So A and B are the correct code snippets.
upvoted
0
times
...
Vallie
1 months ago
That's right, they can't inherit from concrete classes like Point.
upvoted
0
times
...
Kattie
1 months ago
Yes, interfaces can only have abstract methods.
upvoted
0
times
...
Regenia
2 months ago
I think A and B are the correct answers.
upvoted
0
times
...
...
Noah
2 months ago
I disagree, I believe B and D are the correct ones.
upvoted
0
times
...
Wei
3 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
az-700
pass4success
az-104
200-301
200-201
cissp
350-401
350-201
350-501
350-601
350-801
350-901
az-720
az-305
pl-300
Jeannetta
25 days agoHeike
13 days agoLashawnda
15 days agoBuck
16 days agoTomoko
27 days agoCasandra
12 days agoEmily
2 months agoTamesha
11 days agoFannie
1 months agoJaney
1 months agoPearly
1 months agoDenna
2 months agoMiesha
2 months agoLacresha
2 months agoDominque
22 days agoVallie
1 months agoKattie
1 months agoRegenia
2 months agoNoah
2 months agoWei
3 months ago