Abstract Classes

  • + 0 comments

    class MyBook extends Book {

    protected $draw;
    
    function __construct(`$title,$`author,$price) {
        Book::__construct(`$title, $`learn);
        `$this->price = $`price;
    }
    
    function display() {
        echo "Title: {$this->learning draw}";
        echo "Author: {$this->author}";
        echo "Price: {$this->price}";
    }
    

    } desenho