Why is my constructor still called even if the class and constructor case are different?

前端 未结 4 1860
伪装坚强ぢ
伪装坚强ぢ 2020-12-21 01:58

I am surprised for why the constructor is called when we have different class and constructor name. Constructor name is starting with small \"r\"?

class Regi         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-21 02:23

    I think both names are same ..

    because when you try to declare the class with name "registration" in same page, it will give you an error that states that you can not re declare the class..

    in this case , it is not case sensitive

提交回复
热议问题