Abstract Classes & Methods | Introduction To Object-Oriented PHP | OOP For Beginners | PHP Tutorials

preview_player
Показать описание
This video will introduce you to Abstract Classes & Methods in Object Oriented PHP – Learn how to reduce development time based in PHP

📚 New Udemy Course

📲 Let’s plan a meeting

💌 Newsletter

🔥 Resources

Want to learn more?

#oop #php #objectorientedprogramming
Рекомендации по теме
Комментарии
Автор

Hi Dary! I don't understand the point. If I comment out the "abstract protected function showProject($project);" line in class Manager, the results are same (with and without given parameter), I get back the project name of instance I've got to the method.

$emp1 = new Employee();
echo $emp1->showProject() // The result is: "I'm working in 'Apple' project."

$emp2 = new Employee();
echo $emp2->showProject("Banana"); // The result is: "I'm working in 'Banana' project."

tibora.
Автор

Nice tutorial. However, you mentioned some topics that you have taught that are supposed to be on this playlist but are not there. For example you mentioned having taught PHP Interface but it's not on this playlist. Do you have another playlist?

judeleon
Автор

Are abstract classes similar to interface classes in Java and Kotlin?

duncanmoiyo
Автор

Can you please create a short video on how to write shorthand constructor method.

samehisaac
Автор

What's the point of writing the following code if it's never used?

public function startProject($project)
{
return
}

phlame
Автор

In welke gevallen zou je een abstract class gebruiken? Het voelt nu als extra code zonder dat het echt nut heeft.

tomdevisser
Автор

i go error when accessing showProject method in Employee
Method 'Employee::showProject()' is not compatible with method

mgmyo
join shbcf.ru