Тёмный

Java Tutorial for Beginners - 13 - Introduction to Objects 

EJ Media
Подписаться 170 тыс.
Просмотров 45 тыс.
50% 1

Опубликовано:

 

30 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 77   
@ThuanNguyen-bo9ig
@ThuanNguyen-bo9ig 9 лет назад
This is the best series of tutorial on the internet. Unlike others, the instructions are lucid and explicitly explained.
@Bringingtheheavyrain
@Bringingtheheavyrain 6 лет назад
You're saving my life. Really. I'm spanish speaker but thankfully I'm fluent in english so when I finnish my 5-hour java classes in spanish everyday without understanding anything I come here and watch you videos in english wich I think are better explained. I think I'll be able to pass exams because of you :_D Thank you so much!
@rokshanaruma2619
@rokshanaruma2619 7 лет назад
This is "THE BEST" explanation of object I have seen. I have been looking at several videos and found none that is really able to explain what an Object is. This video explain the concept really clearly. so, THANK YOU!!
@TheMegaGamerLT
@TheMegaGamerLT 7 лет назад
When i started 2 days ago i was very confused with all those objects and Strings ,but today when i found your channel i think i can actually learn java.
@nicogamon8924
@nicogamon8924 7 лет назад
This is what I've been looking for, I'm very confused about objects, now this explains well. THANK YOU!
@akaliluxanna5998
@akaliluxanna5998 8 лет назад
Thank you for breaking it down so much I don't know why people cant just tell you the same stuff this guy explains. Every time I ask someone a question in programming they just look at me and say "well how do you think it works?" .... fuckers if i knew how it worked i would just do it ahfljwahfljwejhf! :D great vid.
@JakeCastle60163
@JakeCastle60163 5 лет назад
my sentiments exactly, jerkoffs
@Ddoglatin
@Ddoglatin 9 лет назад
Much better than my professor
@umakhaitov
@umakhaitov 7 лет назад
Thank you so much EJ Media for all these tutorials, you are the best in this field, trust me! Please keep up !
@h-girlradio4699
@h-girlradio4699 9 лет назад
Omg thank you so much for making this video! I had so much trouble trying to understand what instances are and really didn't understand the "class" in Java coding as well as I thought I did. This video washed away so much confusion for me regarding objects. Keep up the good work :-).
@EJMedia1
@EJMedia1 9 лет назад
+Hgirl Radio Thank you
@jaketran5104
@jaketran5104 9 лет назад
Your Java tutorial videos is like me watching an interesting episode script and when one episode is over I be looking forward to go straight to the next available episode. It's very hard to find the best tutorial videos out there that break things down very clearly at a good beginner pace and you are one of the best. I would recommend you to keep on doing what you do on your way to a million subscribers one day, so in return I congratulate you mark another history of earning a subscriber from me. - Thanks!
@EJMedia1
@EJMedia1 9 лет назад
+Phuong Li Thank you for the nice words
@Androidify767
@Androidify767 8 лет назад
you're simply amazing!! never thought that I'd understand Java!!!
@justinrademaker1139
@justinrademaker1139 5 лет назад
I love how the like/dislike-ratio's on all of this guy's videos are insanely positive.
@kalijohnson9187
@kalijohnson9187 10 лет назад
Thank you so much for short and very clear explanation. After finished watching one I don't want to stop . Want to watch next lesson.
@EJMedia1
@EJMedia1 10 лет назад
Kali Johnson Thanks positive feedback keeps me going
@SiddharthMaurya7
@SiddharthMaurya7 8 лет назад
for(i=0; i
@EJMedia1
@EJMedia1 8 лет назад
+Siddharth Maurya Thank you sir
@SiddharthMaurya7
@SiddharthMaurya7 8 лет назад
EJ Media Actually...I am student...sir
@chadjensen1081
@chadjensen1081 7 лет назад
ok. what confuses me is the first "Planet" is referencing the Planet class on your other page and the word "Earth" modifies the class to tell java to name this particular planet earth. and from my java course "new" makes room in the memory for that "planet earth" i get all that, but what does the "Planet" after the "new" reference or call out or do?
@haha-gg2rc
@haha-gg2rc 7 лет назад
Hello, my name is Lars and im are 13 years old. I just want to tell you that your tutorials have helped me alot.
@einstu
@einstu 5 лет назад
Finally clicked. Thanks for beating this one to death in gory detail. I like your style
@faizanali273
@faizanali273 5 лет назад
this one is amazing . i am really great full, that i found your videos on youtube . thank u sir u are amazing.
@jassica672
@jassica672 7 лет назад
Thanks for uploading. You deserve thumps-up.
@nmonga73
@nmonga73 10 лет назад
All Videos are great a easy to understand. If you provide some Exercises to practice that would be icing on the cake.
@EJMedia1
@EJMedia1 10 лет назад
NEERU MONGA Later on in the series I provide more functioning code. At this point I am explaining concepts.
@nmonga73
@nmonga73 10 лет назад
Thank you so much, Really appreciate all your videos.
@EJMedia1
@EJMedia1 10 лет назад
Glad they are helping you
@nmonga73
@nmonga73 10 лет назад
Sure thank you I may be asking lot of questions. I am a QA and trying to learn Selenium with Java and didn't have any background in programing. Little overwhelmed with all the information :-(
@EJMedia1
@EJMedia1 10 лет назад
NEERU MONGA Ah Selenium - these tutorials should help you. You will want go go all the way to the 40th episode ... after that the episode start to deal more with apps . But by 40 you will have all the core concepts down
@deepin2urheart
@deepin2urheart 2 года назад
sir can we do same thing by creating variable outside the main class in the AllPlanets Class also...? I mean when we can create native variables,, why so we need to call it from outside..
@la325i
@la325i 9 лет назад
I got the power! now I can create planets! Thank you +INF times!!
@peterlingas7843
@peterlingas7843 8 лет назад
I wrote the exact same code as you wrote, letter after letter. But i still got this error message:Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: objects.Planet at objects.Objects.main(Objects.java:7)
@hieubui7670
@hieubui7670 8 лет назад
Thank you so much for explaining this concept!
@DataMysterium
@DataMysterium 3 года назад
why we defined the attribute before the method and not in the method ? is it this attribute related to this specific method ?
@gusp5762
@gusp5762 10 лет назад
Well your tutorials are so easy to understand. I ve been watchin thenewboston beginner java tuts and this part was so difficult to understand, yet you made it so simple to understand.Are the java series going to continue???
@EJMedia1
@EJMedia1 10 лет назад
Thanks I think its important to understand the concepts first - as most concepts apply to all languages
@vaibhavvijay1061
@vaibhavvijay1061 7 лет назад
Very Nicely Explained :)
@HoopsAnime
@HoopsAnime 9 лет назад
Great tutorial
@chadjensen1081
@chadjensen1081 7 лет назад
so classes are containers that hold objects?
@xoppa09
@xoppa09 8 лет назад
when you reference an object, here the class Planet, does the object have to be in the same package as the file you are presently in typing the code
@EJMedia1
@EJMedia1 8 лет назад
+xoppa09 This has to do with access modifiers - i believe i talk about this in a few videos
@kylehee
@kylehee 7 лет назад
I paused ad blocker for this video
@Bliss..
@Bliss.. 10 лет назад
... in Java
@davidpalafox6978
@davidpalafox6978 4 года назад
How come the first file go under the main method?
@SmokeyAshesEDM
@SmokeyAshesEDM 10 лет назад
Amazing tutorials!
@EJMedia1
@EJMedia1 10 лет назад
SmokeyAshes Music Thanks much
@bogite8734
@bogite8734 7 лет назад
soooo, basically like functions in python?
@brusslee1814
@brusslee1814 8 лет назад
earth is an object instance of the planet object? therefore we can make another object instance of planet object called Mars? Planet Mars = new Planet Mars.size=50,000 // i put comma for readability i know java doesn't accept that Mars.displaySize(); and thus we could have displayed both mars and earth size in the console Have i understood this correctly? Looking forward for your reply, Thanks in advance! subbed :)
@Joe-tv7ce
@Joe-tv7ce 9 лет назад
first of all,thank you for your tutorials ,would u pls tell why is there a "()" after displaysize and planet ?thank you
@EJMedia1
@EJMedia1 9 лет назад
On Hang Tang The opening and closing parenthesis are required if you want to pass data or information in to your method - if the brackets are empty then you are passing nothing.
@Joe-tv7ce
@Joe-tv7ce 9 лет назад
EJ Media thank you so much
@tejaspawar8172
@tejaspawar8172 6 лет назад
Finally, got to now something about your name...Ernie!
@Layklant
@Layklant 7 лет назад
Thanks! Awesome!
@AnoyyingOnion
@AnoyyingOnion 10 лет назад
So why is there open and closed parenthesis "()" after new Planet? What's their purpose?
@EJMedia1
@EJMedia1 10 лет назад
AnoyyingOnion Thats the constructor ill be explaining those in a few videos
@AnoyyingOnion
@AnoyyingOnion 10 лет назад
Ok great, Thanks so much! Love your videos btw!!!
@ariton2990
@ariton2990 6 лет назад
Wait, then what is the difference between a class and an object? Didn`t you create a class and not an object with public class Planet?
@MCMXXIV
@MCMXXIV 10 лет назад
one question...with your previous tutorials, you always start with "class". I do understand the meaning of "public" which is to make it visible to other class/classes, am i right? But my question is.....so when do I use "public class" and when to use just "class". Thank you. :D
@EJMedia1
@EJMedia1 10 лет назад
Well that's a good question. All the keyword public does is set the visibility of your class template. Do you want everyone to see it or not? If not then you take the public keyword off. I would say that you should keep your classes public so that everyone can get to them. I think in episode 17 I will go in greater detail about when to use public. Also begin to think of you class more as a template or blueprint and when you use the new keyword that is when you create your objects off the class So there are 4 visibility keywords: public, private, protected, and default. In episode 17 i will discuss all of them and why you use them in certain scenarios.
@EJMedia1
@EJMedia1 10 лет назад
Generally though you always set your classes and methods to public and your variables to private. Now of course for these training lessons it doesn't really matter because we are dealing with a few classes. But when you have a large project you always want your methods and classes set to public and your variables set to private. I will explain that in 2 episodes - 17 and 31. The protected keyword dont worry about that so much for now - i dont use that alot. By the way with public EVERYBODY can see it ... private is MOST restrictive - only everything in the class can see private - everything out side the class cannot see anything set to private. But you want your class set to public because thats the whole point of a class - we want to be able to build objects from it.
@MCMXXIV
@MCMXXIV 10 лет назад
EJ Media Thank you very much for your explanation :)
@saumitrabhardwaj2944
@saumitrabhardwaj2944 10 лет назад
Dios los bendiga
@JakeCastle60163
@JakeCastle60163 5 лет назад
EJ is to Coding what Prof. Messer is to Networking
@meesie1
@meesie1 10 лет назад
This doesn't work: Cannot make static reference to the non static field Planet.size
@EJMedia1
@EJMedia1 10 лет назад
I will take a look at the code tonight and let you know
@deadlyclasher
@deadlyclasher 8 лет назад
wont work on bluej?
@deadlyclasher
@deadlyclasher 8 лет назад
found what i was doing wrong, forgot to compile Planet
@leonidasi8861
@leonidasi8861 10 лет назад
Shit just got real
@EJMedia1
@EJMedia1 10 лет назад
Leonidas I Glad to be of help!
Далее
Java Tutorial for Beginners - 31 - Getters and Setters
12:01
g-toilet fights juggernaut (skibidi toilet 77)
00:59
Просмотров 1,6 млн
СОБАКА И ТРИ ТАБАЛАПКИ😱#shorts
00:24
Java Tutorial for Beginners - 16 - Constructors
9:32
Think Fast, Talk Smart: Communication Techniques
58:20
CoPilot Review: My Thoughts After 6 Months
9:45
Просмотров 553 тыс.
g-toilet fights juggernaut (skibidi toilet 77)
00:59
Просмотров 1,6 млн