Question: 1 Using inheritance create a new class named BikeShop from an existing class named BaseClass Write a PHP 5 constructor method that calls the inherited

1 Using inheritance create a new class named BikeShop from an existing class named BaseClass
Write a PHP 5 constructor method that calls the inherited method printName()
No output/print required, I will create BaseClass, build an object and check that the inherited method ran
class BikeShop extends BaseCalss{
function__construct(){
echo printName();
}
}
Kepp getting syntax error what am i doing wrong?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!