//***************************************** public class Main { public static void main(String[] args) {
// toString() = special method that all objects inherit, // that returns a string that "textually represents" an object. // can be used both implicitly and explicitly
Car car = new Car();
System.out.println(car.toString());
// or
System.out.println(car);
} } //***************************************** public class Car { String make = "Ford"; String model = "Mustang"; String color = "red"; int year = 2021;
🇿🇦 South African junior Software developers thank you for your service. I have made over 200slides and counting of your full tutorial. You're better than my lecturers.
If you're ever struggling with Java in school, just come to this channel and follow this man's video. You're going to understand the materials so much better and possibly make it into development
Well explained, mate! The info that toString() is called each time you use println to display an object, without the need of writing it down, was my gold nugget in this video! Thanks for that and keep on!
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
Shit dude I just discovered your channel and it is sooo helpful (I like how you explain stuff simply and make it easy to understand) . Keep helping people like this and I'm sure your channel will grow (you definetly deserve more than 5K subscribers)
One time i had a mistake when i saw the 82'th clip in ur list, and then, i realized and watched again at the first video, i easily to understand. That's a amazing :D Thanks guy for sharing
so resuming everything,tostring() prints the memory address of an instance of a class (an object) and we can override that method to print whatever we want, usually it's used to print all the instance variables of an instance of a class.
//*****************************************
public class Main {
public static void main(String[] args) {
// toString() = special method that all objects inherit,
// that returns a string that "textually represents" an object.
// can be used both implicitly and explicitly
Car car = new Car();
System.out.println(car.toString());
// or
System.out.println(car);
}
}
//*****************************************
public class Car {
String make = "Ford";
String model = "Mustang";
String color = "red";
int year = 2021;
public String toString() {
return make +"
"+model+"
"+color+"
"+year;
}
}
//*****************************************
you dont sound like a Bro
🇿🇦 South African junior Software developers thank you for your service. I have made over 200slides and counting of your full tutorial. You're better than my lecturers.
Very simple, right to the point, clear, no useless blabla.. great video. Thank you so much
I love this comment too!
If you're ever struggling with Java in school, just come to this channel and follow this man's video. You're going to understand the materials so much better and possibly make it into development
loving the java because of this series of tutorial
Awesome video, understood clearly
Thanks bro Code
Best explanation i've come across, thanks!!
simple explanation thank you a lot
Well explained, mate! The info that toString() is called each time you use println to display an object, without the need of writing it down, was my gold nugget in this video!
Thanks for that and keep on!
Amazing BRAVO 👏
It took 1 hour to explain this in lectures.still did not get it. Bro explained it perfectly in 6 mins. God bless you bro
Great *Bro code*
i am going to download your all java playlist
great explanation
and thank you *Bro* 👍👍👍
sweeeeet! Thanks for watching Muhammad!
Your way to explain is the best🙃thanks!
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
simple, to the point, nice speed of speaking and teaching, trains of thought very nice to follow, accentuation when speaking also great. thanks mate.
the best java free course available greet work broCode
great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much
great videos
Great stuff, thank you
Shit dude I just discovered your channel and it is sooo helpful (I like how you explain stuff simply and make it easy to understand) . Keep helping people like this and I'm sure your channel will grow (you definetly deserve more than 5K subscribers)
thanks Ruben!
lol he had 5K suscribers 1 year ago? Definitely he grew up! ^^
lol now he has 600k!
@@gaminggoddessaria Well he now has 1 MILLION !
And now there are 1.5 million subscribers.
really nice
This is something new
clear and focused, great work Bro!
Owesome bro i always love your videos
crystal clear, Thanks Bro
wonderful
good teach!thanks bro
great video very helpful!!
I like your explanation bruh i think You're The best Teaching I've Ever Seen
Great job!
nice work
One time i had a mistake when i saw the 82'th clip in ur list, and then, i realized and watched again at the first video, i easily to understand. That's a amazing :D Thanks guy for sharing
like it
This channel is incredible!
Thank you so much sir.
Thanks 👍😊 bro you are living legend
Bro I'm reviewing basic stuffs cuz I tend to forget and I just wanna say that you're a godsent to this world. Keep it up man!
Pure bliss
Awesome tutorial!
Great
Great Video!
Thanks bro
very good
Great❤
Awesome
Thanks
Thank u bro
Nice Explanation sir
Nice.
Nice!!!
Great explanation bro, thank you
great
Thank you! From Ukraine.
keep up the good work Bro you are the best
can you create a swing java video
Perfect
my appreciation
Ok, so we can use toString implicitly, without using "make, model, color so on" manually. Completely understood. 30th. Thank you, ma Bro Sensei!
ur the best
You are the best thank you♥️
Nice
thanks
coool
Thank you.
Thanks, bro.
good
goooooooooood work bro thx
nice video, much better than my lecturer did
Damn! I better understand your tutorials than yt tutorials in my native language. Thank you, great job:)
Yes, it's true.
thx bro
You are a legend man
Thanks, Bro! ☕ You're awesome!
You're the BEST 😉
Fantastic! Thank you!!
I love you BRO!!!! From Russia with LOVE!!!!
Cool :)
ty
best bro
Well explained Bro!
thank you my Bro ♥♥♥
Thank you very much !!
👍
nice
thank you.
30th. Thank you, ma Bro Sensei
🥰
I finally get it lol thanks you have the best explanations I am glad I found your channel!
😘😍😻
Thank you!
Thanks!
Thanks broseph
Best bro!!!!
so resuming everything,tostring() prints the memory address of an instance of a class (an object) and we can override that method to print whatever we want, usually it's used to print all the instance variables of an instance of a class.
Gratitude from Lithuania
Thnks senpaii
i lov u bro
thank you !!
Makes sense
Man you're the best!!!!
this was explained so well! thanks bro, ima fellow bro now ;D