Really good job, especially if you need to learn PHP in a few days, after the fifth video my mind is blowing, but it's pretty common to Java, just need to get used to the syntax, and some major differences. I hope the guy who will work on the project after me will never know me and where I live.
Calling parent constructor method is to avoid code duplication. Because 3 properties are already set in parent's constructor method so instead of writing the code again in child class, we can simply call parent constructor in child's constructor method.
Hello! Good job your videos, I saw 5 hour php... few days ago and now watch this course :) 2:00 to get private property of course I should create method in Parent class but to get protected property can I create this metod in Child class? Do I understand correctly? Is there small inaccuracy in your video...?:)
To get a PRIVATE property of PARENT class you should create method in PARENT class but to get PROTECTED property of PARENT class you can create method in both PARENT and CHILD class.
Really good job, especially if you need to learn PHP in a few days, after the fifth video my mind is blowing, but it's pretty common to Java, just need to get used to the syntax, and some major differences.
I hope the guy who will work on the project after me will never know me and where I live.
Excellent! It is good to refresh language skills! Regards!
lol at the full screen face love declaration 😂
Did'm understood the line - parent::__construct($name, $age, $phone)
is it for inheriting parent class constructor function?
thank you!
Calling parent constructor method is to avoid code duplication. Because 3 properties are already set in parent's constructor method so instead of writing the code again in child class, we can simply call parent constructor in child's constructor method.
Sir you type so damn fast. Can make a video on that? xD do typeracer challenge and share tips on improving speed.
Thanks.
I will think about it.
8:15 why it is self:: instead of parent:: ???
Hello! Good job your videos, I saw 5 hour php... few days ago and now watch this course :)
2:00 to get private property of course I should create method in Parent class but to get protected property can I create this metod in Child class? Do I understand correctly? Is there small inaccuracy in your video...?:)
And next I am going to watch PHP MVC Framework, I always wanted understand how it is work... hehe
is it good sequence to watch your php wideos?:)
To get a PRIVATE property of PARENT class you should create method in PARENT class but to get PROTECTED property of PARENT class you can create method in both PARENT and CHILD class.
like