i just clear my oop concept from vishal sir one of the best teaching methode he has and his students would be the lucky student if vishal sir will teach them
trait Myclass1{ function myfunc1(){ echo 'function 1'; } } class Myclass2 { use Myclass1; function myfunc2(){ echo 'function 2'; } } class Myclass3 extends Myclass2{ function myfunc3(){ echo 'function 3'; } } class Myclass4 extends Myclass3{ function myfunc4(){ echo 'function 4'; } } $class4 = new Myclass4; echo $class4->myfunc1(); $class2 = new Myclass2; echo $class2->myfunc1(); how it execute than????😁😁
@@ProgrammingwithVishal trait Myclass1{ function myfunc1(){ echo 'function 1'; } } class Myclass2 { use Myclass1; function myfunc2(){ echo 'function 2'; } } class Myclass3 extends Myclass2{ function myfunc3(){ echo 'function 3'; } } class Myclass4 extends Myclass3{ function myfunc4(){ echo 'function 4'; } } $class4 = new Myclass4; echo $class4->myfunc1(); $class2 = new Myclass2; echo $class2->myfunc1(); how it execute than????😁😁
trait Myclass1{ function myfunc1(){ echo 'function 1'; } } class Myclass2 { use Myclass1; function myfunc2(){ echo 'function 2'; } } class Myclass3 extends Myclass2{ function myfunc3(){ echo 'function 3'; } } class Myclass4 extends Myclass3{ function myfunc4(){ echo 'function 4'; } } $class4 = new Myclass4; echo $class4->myfunc1(); $class2 = new Myclass2; echo $class2->myfunc1(); how it execute than????😁😁
Good video sir but I have a query ki agar mere pass 2 class hai aur 2 class 1 ko inherit krta h aur dono class me fun() name ka same function h but uska content different h aur mujhe use karna h class 1 ka fun() function to mein uska object banake ke sakta hu but agar trait me ek function h aur ek class me uss trait ko mene use kia h aur class me same name ka function h jo trait me h aur mujhe call Krna h trait vala function but uska object bn nhi skta aur me class ka object banaunga aur call karunga to vo to class ka function chalega jabki mujhe chalana h trait ma to hm kya kr skte h sir g please answer dena I want to know thank you
Sir no doubt aap bahut achha padhate hai, Maine aapki bahut si videos dekhi hai Aaj Tak koi doubt nhi hua. But Sir mai trait use kar raha hun, wo bhi multiple level par Kam kar raha hai Like inheritance. Please help
trait Myclass1{ function myfunc1(){ echo 'function 1'; } } class Myclass2 { use Myclass1; function myfunc2(){ echo 'function 2'; } } class Myclass3 extends Myclass2{ function myfunc3(){ echo 'function 3'; } } class Myclass4 extends Myclass3{ function myfunc4(){ echo 'function 4'; } } $class4 = new Myclass4; echo $class4->myfunc1(); $class2 = new Myclass2; echo $class2->myfunc1(); But how it execute ... than???😃😃😃
sir appne concept itne badiya clear karvaye hai ki ab koi dout hi nahi rahe
i just clear my oop concept from vishal sir one of the best teaching methode he has and his students would be the lucky student if vishal sir will teach them
trait Myclass1{
function myfunc1(){
echo 'function 1';
}
}
class Myclass2 {
use Myclass1;
function myfunc2(){
echo 'function 2';
}
}
class Myclass3 extends Myclass2{
function myfunc3(){
echo 'function 3';
}
}
class Myclass4 extends Myclass3{
function myfunc4(){
echo 'function 4';
}
}
$class4 = new Myclass4;
echo $class4->myfunc1();
$class2 = new Myclass2;
echo $class2->myfunc1();
how it execute than????😁😁
Bhoat accha laga yeh janke sir
Nice, this is the first time I found instead of things in traits. Awesome, thanks.
Learned lot of tricks and importance of traits, mostly i was surprised with alias section.
Thank you sir.
Thank you sir.ur teaching style is very simple.all can able to clear
mind blowing thank you sir
Mind-blowing Explanation Sir ..Thanks
Helpful Tutorial Video
Thanks
sir you are a true gem😊
thank you for this simple explanation sir really helpful
Excellent work sir g
Thanks for this super OOP series
Very helpful video,keep it up sir.
Thank you ... This video helps me alot .. nice explanations in all Oop series.... Thank you
Thanks a lot Pritesh
@@ProgrammingwithVishal trait Myclass1{
function myfunc1(){
echo 'function 1';
}
}
class Myclass2 {
use Myclass1;
function myfunc2(){
echo 'function 2';
}
}
class Myclass3 extends Myclass2{
function myfunc3(){
echo 'function 3';
}
}
class Myclass4 extends Myclass3{
function myfunc4(){
echo 'function 4';
}
}
$class4 = new Myclass4;
echo $class4->myfunc1();
$class2 = new Myclass2;
echo $class2->myfunc1();
how it execute than????😁😁
Thank you so much sir
You are doing great job sir thank you so much for sharing most most important info to us . Thank you☺️
trait Myclass1{
function myfunc1(){
echo 'function 1';
}
}
class Myclass2 {
use Myclass1;
function myfunc2(){
echo 'function 2';
}
}
class Myclass3 extends Myclass2{
function myfunc3(){
echo 'function 3';
}
}
class Myclass4 extends Myclass3{
function myfunc4(){
echo 'function 4';
}
}
$class4 = new Myclass4;
echo $class4->myfunc1();
$class2 = new Myclass2;
echo $class2->myfunc1();
how it execute than????😁😁
Thank you 🙏🏻
Thank you sir...
Welcome
Good video sir but I have a query ki agar mere pass 2 class hai aur 2 class 1 ko inherit krta h aur dono class me fun() name ka same function h but uska content different h aur mujhe use karna h class 1 ka fun() function to mein uska object banake ke sakta hu but agar trait me ek function h aur ek class me uss trait ko mene use kia h aur class me same name ka function h jo trait me h aur mujhe call Krna h trait vala function but uska object bn nhi skta aur me class ka object banaunga aur call karunga to vo to class ka function chalega jabki mujhe chalana h trait ma to hm kya kr skte h sir g please answer dena I want to know thank you
Sir no doubt aap bahut achha padhate hai, Maine aapki bahut si videos dekhi hai Aaj Tak koi doubt nhi hua. But
Sir mai trait use kar raha hun, wo bhi multiple level par Kam kar raha hai
Like inheritance.
Please help
output: trait is here.
sir big project kaise banaye with oops concepts
sir clear show ni hore sb worlds
Sir is it worth php in 2024
souce code pls
trait Myclass1{
function myfunc1(){
echo 'function 1';
}
}
class Myclass2 {
use Myclass1;
function myfunc2(){
echo 'function 2';
}
}
class Myclass3 extends Myclass2{
function myfunc3(){
echo 'function 3';
}
}
class Myclass4 extends Myclass3{
function myfunc4(){
echo 'function 4';
}
}
$class4 = new Myclass4;
echo $class4->myfunc1();
$class2 = new Myclass2;
echo $class2->myfunc1();
But how it execute ... than???😃😃😃
completely wrong concept!!!!😇