How do PHP parent class methods access subclass properties?

< H2 > how do PHP parent class methods access subclass properties? < / H2 >
A 
 $name 
 B  A
 A ()  ?

clipboard.png

<?php
class A
{
    private static $name = "A";
    
    public static function test()
    {
        echo self::$name;
    }
}

class B extends A
{
     private static $name = "B";
}

B::test();
?>
Php
Apr.03,2021

class A
{
    private static $name = "A";
    
    public static function test()
    {
        echo static::$name;
    }
}

class B extends A
{
     protected static $name = "B";
}

B::test();
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a717-2b98f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a717-2b98f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?