It's possible to write the implementation of this function in another class that extends the superclass "Car".
Like this:
class Car {
// Implemented in Porsche
function get_car_num() {
}
// Implemented in Porsche
function get_car_color() {
}
// Implemented in Car
function hello() {
echo "hello";
return;
}
}
class Porsche extends Car {
function get_car_num() {
// Ex
return("100");
}
function get_car_color() {
// Ex
return("black");
}
}