15: Anonymous Classes In OOP PHP | Anonymous Explained | Object Oriented PHP Tutorial | PHP Tutorial

  Рет қаралды 41,411

Dani Krossing

Dani Krossing

Күн бұрын

Пікірлер: 39
@salmanmansoor1272
@salmanmansoor1272 3 жыл бұрын
im from Pakistan . i learned procedural php from an institute here and landed on this playlist to learn the object oriented PHP. i just wanted to tell you that in my 16 years of education career. i have never seen a better teacher than you brother. i have 3 videos to go. already sunscribed you. will look forward to more of of your tutorials. This stuff that your teaching for free is charged very heavy in my country. Thanks alot.
@nikolav6350
@nikolav6350 5 жыл бұрын
Hey can you make videos about design patterns in PHP that we need to know, i have already tried to learn but your explanations are so great to follow and learn better.
@voidcacti
@voidcacti 5 жыл бұрын
You've taught me so much, thank you!
@abdoemad4997
@abdoemad4997 3 жыл бұрын
you are a great teacher I wish all of teachers were like you
@AvaneeshKumarSingh
@AvaneeshKumarSingh 5 жыл бұрын
You are doing a great job. Keep it up. Thanks.
@patrik5123
@patrik5123 3 жыл бұрын
I'd like to know a real-example of when "taking up too much memory" would be a bad thing and an anonymous class would be a better choice. I'm struggling to see the use tbh because servers aren't usually lacking RAM these days. And besides, how many k could a class really take up?..
@umslopogaas
@umslopogaas 4 жыл бұрын
Eldest brother of the Peaky gang, Daniel Shelby 💣😂
@SumitPMakwana
@SumitPMakwana 5 жыл бұрын
Why you didn't add it to your OOP PHP Tutorial Playlist?
@TherealEmemay
@TherealEmemay 2 жыл бұрын
Thank you men👍
@user-bi7nq4nj7q
@user-bi7nq4nj7q 3 жыл бұрын
Thank you for these amazing lessons, I like your positive and upbeat demeanor. I have a question: Even though the example in your lesson works, When I look into the output on the BuyProduct.class.php, it says it cannot find the Visa class. normally, it would require some sort of inclusion of the paymenttypes.abstract.php for it to gain access to those methods from inside the BuyProduct.class.php. does the includes_once assigned in the index.php bridge that gap itself by extension? can you explain how the index.php works in this case? Thank you in advance!
@ProgrammingwithPeter
@ProgrammingwithPeter 5 жыл бұрын
You're doing a great job on explaining!
@nac9880
@nac9880 5 жыл бұрын
Lol I thought this was an old video. Can you do a design pattern playlist? I am trying to understand solid, phptherightway and these patterns like activerecord, repository, DAO etc but it is tough to understand yet
@eadoard
@eadoard 4 жыл бұрын
Big thank from syria Bro you are doing great thank you
@mr.x667
@mr.x667 9 ай бұрын
حاسس سوريا طلعت عالتلفزيون بسبب الكومنت تبعك 😂😂😂
@TahirBhai
@TahirBhai 3 жыл бұрын
I think anonymous class can be relate to Singleton design pattern, I can see in anonymous class you can only create a single object and in singleton its the same.
@kaifahmad4131
@kaifahmad4131 2 жыл бұрын
Looking like Thomas Shelby. Great tutorial though.😃
@bitmammothOG
@bitmammothOG 5 жыл бұрын
Soooo close to 200k Subs! :D
@aaronpaulsisracon3098
@aaronpaulsisracon3098 5 жыл бұрын
Coz im having a hard time doing it. I watched a lot of your yt tutorials. I hope u can make one abt my concern. Thank you!
@dantewins
@dantewins 5 жыл бұрын
please make a video on how to store multiple data with implode or something
@mdsafikulislam9113
@mdsafikulislam9113 5 жыл бұрын
Thank you so much !
@perianka
@perianka 4 жыл бұрын
tysm
@ademineshat
@ademineshat 5 жыл бұрын
Great Thank you!
@pcprodoc
@pcprodoc Жыл бұрын
I have a quick question and I did not hear the reason the short video here. In the video on line 15 there is a }; and this is very unusual to see with all the coding and videos I have watched with you. Is this how abstract class sections are closed like a standard PHP line would. Like echo "Hello World!"; I found this intreging and with no explication as to why this is. I was left standing beside myself. So is this a typeo or is this required with Abstract Class?
@Dani_Krossing
@Dani_Krossing Жыл бұрын
It is because we created the class by assigning it to a variable. 🙂 So the ; at the end is to close the variable.
@MrDflego
@MrDflego 4 жыл бұрын
I'm finding that the second word in the name extension needs to match the name of the folder it's in exactly otherwise I get an error, I'm using Visual Studio Code.
@DNRAdventures
@DNRAdventures Жыл бұрын
When I try to use an anonymous class I get an error of “unexpected class (T_CLASS)” in the IDE and the webpage just shows a 500 error
@DNRAdventures
@DNRAdventures Жыл бұрын
I found if I add that semicolon after the last } in the anonymous class, the webpage works, but the IDE still shows an error - that is strange that that semicolon is needed ??? You don’t normally need a semicolon there for a normal class - why is that needed?
@TristanPope
@TristanPope 5 жыл бұрын
Are you still using the Brio?
@Dani_Krossing
@Dani_Krossing 5 жыл бұрын
No I am using my phone :)
@TristanPope
@TristanPope 5 жыл бұрын
mmtuts why the switch?
@nikolav6350
@nikolav6350 5 жыл бұрын
I don get when in real life we would use it, why don't we just create a function that we need if we want to use it once if we don't want to create class and store in memory.
@Dani_Krossing
@Dani_Krossing 5 жыл бұрын
If you just need one function then sure, use a function. However if you need to perform multiple methods and store multiple properties, then an anonymous class gives you more structure and takes up less memory. In my lesson example I did only have a single method in my class, but that was just an example.
@nikolav6350
@nikolav6350 5 жыл бұрын
@@Dani_Krossing Thank you for the answer, your videos are amazing !!
@adonishomefitness
@adonishomefitness 5 жыл бұрын
I need help im trying to find out how to add google adsense onto my website but all the videos i watch are for wordpress i dont use wordpress only html,css and javascript
@lemarhenry7778
@lemarhenry7778 5 жыл бұрын
bro what does this error mean ? mysqli_connect(): (HY000/2002)?
@moritzluckner9491
@moritzluckner9491 5 жыл бұрын
What program is this?
@rcaldeirasilva
@rcaldeirasilva 4 жыл бұрын
Atom atom.io/
@adonishomefitness
@adonishomefitness 5 жыл бұрын
I need help
@edgar-mmxxiii
@edgar-mmxxiii 3 жыл бұрын
So manny types of classes! Ridiculous programming language.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 29 МЛН
Wait for it 😂
00:19
ILYA BORZOV
Рет қаралды 11 МЛН
Random Emoji Beatbox Challenge #beatbox #tiktok
00:47
BeatboxJCOP
Рет қаралды 58 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 116 МЛН
Java Anonymous Inner Classes Explained in 6 Minutes
6:27
Coding with John
Рет қаралды 100 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 813 М.
Should You Learn Object Oriented PHP?
13:48
Dani Krossing
Рет қаралды 11 М.
5 Tips For Object-Oriented Programming Done Well - In Python
16:08
Learn Object Oriented PHP - 3 Hour PHP OOP Course
3:00:42
Gary Clarke
Рет қаралды 63 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 319 М.
I tricked MrBeast into giving me his channel
00:58
Jesser
Рет қаралды 29 МЛН