Skip to main content

Posts

Showing posts from June, 2018

Learn Object Oriented Programming PHP fundamentals bootcamp | Lecture-13

Extending Object-Oriented Programming in PHP: A Fundamentals Bootcamp If you're looking to master object-oriented programming in PHP, Udemy's PHP Fundamentals Bootcamp is the course for you. In lecture 13, you'll learn how to use the "extends" keyword to extend classes and reuse code efficiently. What is "extends" in Object-Oriented Programming? The "extends" keyword is a fundamental feature of object-oriented programming (OOP). It allows you to create a new class based on an existing class (the parent or superclass), inheriting all of its properties and methods. You can then add your own unique properties and methods to the new class (the child or subclass), without having to rewrite all of the code that already exists in the parent class. Benefits of "extends" Using "extends" in OOP has several advantages, including: Code reusability: By extending an existing class, you can reuse code and avoid duplicating it in your new