

Get the full course at:
In this lesson, you will learn how to define a class and create instances of that class (called objects) in the Java programming language.
Learn how to program in java with our online tutorial. We will cover variables, loops, if else branching, arrays, strings, objects, classes, object oriented programming, conditional statements, and more.
source
WELL DONE!!! 7 years later… 🙂
Super useful video as well as the best explanation ever . I spend 3 to 4 days to find the suitable video , but then i came over this video………. and bro seriously , this is "The best video" ever….I just fell in love with your explaination…………
cesssna172 is not an object, it is a refrence variable that references to the objects whenever the object is needed,it just knows the way how to acces an object but it is not the actual object.Variables contain data only in primtive data types not while they are used with objects.!
I was confused with the entire concept of OOP for a long time, but this video is really clearing it up. Thank you!!
that was the best tutorial vid I've seen but can you please tell me where to find the quistions that you talk about in the last of the video ??
so basically you explained a concept my teacher failed to do so in 2 hours..
thanks your the best
Thank you for these videos! im a beginner and its helping me Alot! can you or someone direct me to video where once you create a class instead of putting in variables your putting in methods, you mention you have other videos for this at around 3:05 of the video.
what is the purpose of using new keyword while creating object..plzzz leave a reply.thank you
thanks alot
Excellent explanation (upper case class name convention aside), very clear. Better than the university lecture notes I have.
This tutorial was extremely helpful, thank you!
that was more than great and helpful really thank you, but where please i can find your entire tutorial for java course.
You explain this topic better than anyone else I've found on YouTube. Thanks for taking the time to thoroughly explain all the relationships in the code.
This channel very helpful ❤
when i create an object, lets take the example you use, can i write
car cessna172 = new aircraft() ?
or it must be the name same with the object ?
better than my university lecturer ha
Amazing wish I knew this channel before. Subscribed keep up with the hard work!!
Great video! you teach really well! thank you ! 🙂
bro no need to explain much about aircraft and its was good video bro
Creating Objects
As you know, a class provides the blueprint for objects; you create an object from a class. Each of the following statements taken from the CreateObjectDemo program creates an object and assigns it to a variable:
Point originOne = new Point(23, 94);
Rectangle rectOne = new Rectangle(originOne, 100, 200);
Rectangle rectTwo = new Rectangle(50, 100);
The first line creates an object of the Point class, and the second and third lines each create an object of the Rectangle class.
Please subscribe our youtube channel : https://www.youtube.com/channel/UC0xat537YITJbN_9GSMUALA
Fb page : https://www.facebook.com/learn.automation.testing
linkedin page : https://www.linkedin.com/school/14580724/admin/
website: http://www.qacult.com for various blogs and Upcoming Events
This is about Automation Testing with industrial standards. Today IT is booming and so is the need for mobile. Thus the need for Automation of desktop web ap…
Why is it not working if you call the class public class?
best java video ever! How can i access the practices?
best explanation of java OOP on youtube!
THAN YOUUUUU!!!!♥️
I have a question: how come the class definition doesn’t come before main? Wouldn’t that mean that the main method doesn’t yet know what aircraft is at the time of object creation? Of coarse it obviously works, but I was curious about the way this is processed and if it would be the same as defining aircraft first.
The comparison to how you assign a typical data type (String, int, double etc) a value vs how you assign a class a value was very helpful, and cleared up why it was that I needed to type the class name twice ie. Aircraft aircraft = new Aircraft(). Thanks for the video 🙂
great!thanks
Thank you so much for these videos. Would you please teach other high-level programming languages? Thanks a lot
Great explanation
I love how you explained how the classes you are creating is similar to the variables we've been using. Really cleared up the confusion.
hope this is the first baby step in taking my banchelor exam
mate i never comment on videos but your video make me have to its a great way of explaining
So good explained! Thank you from Germany 🙂
Love your videos. I've been trying to have that "aha" moment, but kept failing. You explain things so clearly that now I'm in that moment. Thank goodness for clear and concise video tutorials!
8:38 That annoys me how there's no space between the // and "creates", unlike the rest of the comments! ;D
10:35 PM
5/16/2019
5:52 Only?… Huh!
10:30:00 PM
5/16/2019
1/2 of an hour
These 2013 videos still seem to happen to be quite helpful!…
10:24:30 PM
5/16/2019
1/2 of 60