It was simple and short ..Thanks for sharing. Guys i request u to please do subscribe and share videos. It was really help to those who wants to learn web technologies.
Interface me jitne function hai un sab ko use krna hota hai main class me aur inheritance me jaruri nhi hai ki aapne extend kiya hai to uske function ko call krna hi padega. 1. Problem :- hame use to interface hi krna hai aur same interface ko 2 alag alag class me use krna hai lekin ek class me sirf ek function ka use hai aur dusre me sirf dusre ka kya kre ese case me
class Myclass{ public $name = 'mehedi'; public $age = 43; function myfunc(){ return $this->name.$this->age; } static function mymessage(){ $percentage = 100; $profession = 'web developer'; echo 'I will be a'.$percentage.'%'.$profession; } } $obj = new Myclass; echo $obj->myfunc(); //echo Myclass::myfunc(); echo Myclass::mymessage(); In this code there is no issue about constructor but when a function body contains self contain than there is no require to create class object just to consider static .. 😀
Because of you I have successfully done two job switches. Great sir, your work is highly appreciated🙏
one of the most simplest, clearly understanding and most explained ....thank you Sir ......it is very useful
Bhout better hai sir thank you soo much because all topic by clear
I am wating
Useful Video
thanks
Sir aap great ho.❤
Best video
helpfull videos
It was simple and short ..Thanks for sharing.
Guys i request u to please do subscribe and share videos.
It was really help to those who wants to learn web technologies.
Thanks a lot Rohan, for your kind words.
Good job sir
Thanks
Interface me jitne function hai un sab ko use krna hota hai main class me aur inheritance me jaruri nhi hai ki aapne extend kiya hai to uske function ko call krna hi padega.
1. Problem :- hame use to interface hi krna hai aur same interface ko 2 alag alag class me use krna hai lekin ek class me sirf ek function ka use hai aur dusre me sirf dusre ka kya kre ese case me
Thank you very much .... Please make video's on oop simple project
Yes Pritesh. Will start that after oops series video.
Love you sir
❤️
Sir cms bare me kuch video dalo
Sure.
Sir PHP oops me ek pura project banayiye please
Yes Suraj. OOPS series ke baad aayega oops projects ka video.
सर SQL मे हम 9 table join कर सकते क्या
Bilkul kar sakte ho, per speed slow ho jayegi. Uske liye indexes use karne padegi.
Where use static function and variables
Reply plz
Benefits tho btaa do
can you explain this.?
Please maintain a gap between your mouth and mic because it create irritaing sound
class Myclass{
public $name = 'mehedi';
public $age = 43;
function myfunc(){
return $this->name.$this->age;
}
static function mymessage(){
$percentage = 100;
$profession = 'web developer';
echo 'I will be a'.$percentage.'%'.$profession;
}
}
$obj = new Myclass;
echo $obj->myfunc();
//echo Myclass::myfunc();
echo Myclass::mymessage();
In this code there is no issue about constructor but when a function body contains self contain than there is no require to create class object just to consider static .. 😀