Jump to content

[SOLVED] abstract and interface question


sasori

Recommended Posts

in abstract class that has abstract methods,

we have to implement them in the child class of that abstract class right?

if a single abstract method is not implemented..an error comes out right?

 

how bout in interfaces?,

let's say i didn't implement one of its methods?

it will produce error as well?

 

so this means none of those two types of classes has a

capability of leaving a single method unimplemented in the child class that extends and implements them

am i right?

 

(just for verification, am a bit confused, ..a bit)

Link to comment
https://forums.phpfreaks.com/topic/119415-solved-abstract-and-interface-question/
Share on other sites

by the way..i posted it on the wrong section because i get much really fast help in the PHP help section of this forum..more than the OOP part .. ( based on my daily queries  )

 

The fact that you get a quicker response in php help does not mean it is the right place to post all your questions.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.