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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.