Problem php exercise, bug?


the website say it sy the wrong phrase, but it's exactly the same :confused: bug ?

    <title>The Shape of Things to Come</title>
    <p> <?php
    class Shape {
    public $hasSides = true;

    class Square extends Shape {


    $square = new Square();
    // Add your code below!\
if (property_exists($square, "hasSides")) {
      echo "J'ai des c么t茅s !";


Not sure if this is a flaw in the SCT, but in a short time we will never know as this course is being sunsetted.

echo "J'ai' des c么t茅s !";


well it's working, thanks


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.