Jump to content

[SOLVED] VERY simple OOP question


LemonInflux

Recommended Posts

Normally, I'd have tested this, but I'm currently on the move and have no way of testing my PHP.

 

If in OOP, class b extends class a, to call a function in class a from class b, do use use $this->classAfunction, or something like $parent->classAfunction? I know it can be done with the scope resolution operator, but I'm trying to keep it to variables

 

Thanks in advance,

 

Tom

Link to comment
https://forums.phpfreaks.com/topic/103025-solved-very-simple-oop-question/
Share on other sites

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.