Java Programming Tutorial – 04 – Defining a Class and Creating Objects in Java

///Java Programming Tutorial – 04 – Defining a Class and Creating Objects in Java

Java Programming Tutorial – 04 – Defining a Class and Creating Objects in Java

FavoriteLoadingAdd to favorites

Get the full course at:

Java468x60

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

By |2020-08-19T08:58:25+00:00August 19th, 2020|Java Video Tutorials|38 Comments

38 Comments

  1. Nathen Zaibert August 19, 2020 at 8:58 am - Reply

    WELL DONE!!! 7 years later… 🙂

  2. Subrata Podder August 19, 2020 at 8:58 am - Reply

    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…………

  3. altini August 19, 2020 at 8:58 am - Reply

    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.!

  4. Diaming787 August 19, 2020 at 8:58 am - Reply

    I was confused with the entire concept of OOP for a long time, but this video is really clearing it up. Thank you!!

  5. Mahmoud Shawish August 19, 2020 at 8:58 am - Reply

    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 ??

  6. Zhibin Hong August 19, 2020 at 8:58 am - Reply

    so basically you explained a concept my teacher failed to do so in 2 hours..

  7. Brunel Ngoufack August 19, 2020 at 8:58 am - Reply

    thanks your the best

  8. Altoids weed August 19, 2020 at 8:58 am - Reply

    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.

  9. Milan K Budha August 19, 2020 at 8:58 am - Reply

    what is the purpose of using new keyword while creating object..plzzz leave a reply.thank you

  10. 哈齐小 August 19, 2020 at 8:58 am - Reply

    thanks alot

  11. Tony Kelly August 19, 2020 at 8:58 am - Reply

    Excellent explanation (upper case class name convention aside), very clear. Better than the university lecture notes I have.

  12. fondlemyballs August 19, 2020 at 8:58 am - Reply

    This tutorial was extremely helpful, thank you!

  13. ahmed mohamed August 19, 2020 at 8:58 am - Reply

    that was more than great and helpful really thank you, but where please i can find your entire tutorial for java course.

  14. TB7 August 19, 2020 at 8:58 am - Reply

    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.

  15. Ultimate ks August 19, 2020 at 8:58 am - Reply

    This channel very helpful ❤

  16. young hwc August 19, 2020 at 8:58 am - Reply

    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 ?

  17. BLVCKBEAN August 19, 2020 at 8:58 am - Reply

    better than my university lecturer ha

  18. usman tariq August 19, 2020 at 8:58 am - Reply

    Amazing wish I knew this channel before. Subscribed keep up with the hard work!!

  19. Thanos Sym August 19, 2020 at 8:58 am - Reply

    Great video! you teach really well! thank you ! 🙂

  20. Naman Zing August 19, 2020 at 8:58 am - Reply

    bro no need to explain much about aircraft and its was good video bro

  21. QA Automation Cult August 19, 2020 at 8:58 am - Reply

    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…

  22. Decall Gamer TV August 19, 2020 at 8:58 am - Reply

    Why is it not working if you call the class public class?

  23. Sheila Song August 19, 2020 at 8:58 am - Reply

    best java video ever! How can i access the practices?

  24. Jake Thomas August 19, 2020 at 8:58 am - Reply

    best explanation of java OOP on youtube!

  25. Shan Carl Belgica August 19, 2020 at 8:58 am - Reply

    THAN YOUUUUU!!!!♥️

  26. William Wallace August 19, 2020 at 8:58 am - Reply

    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.

  27. Graham August 19, 2020 at 8:58 am - Reply

    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 🙂

  28. AlankaGoryanka Osetinka August 19, 2020 at 8:58 am - Reply

    great!thanks

  29. Sarah Ramazani August 19, 2020 at 8:58 am - Reply

    Thank you so much for these videos. Would you please teach other high-level programming languages? Thanks a lot

  30. Mighty Minority August 19, 2020 at 8:58 am - Reply

    Great explanation

  31. Mr Meh August 19, 2020 at 8:58 am - Reply

    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.

  32. One Soul August 19, 2020 at 8:58 am - Reply

    hope this is the first baby step in taking my banchelor exam

  33. Yasir Alassadi August 19, 2020 at 8:58 am - Reply

    mate i never comment on videos but your video make me have to its a great way of explaining

  34. Pascal dev August 19, 2020 at 8:58 am - Reply

    So good explained! Thank you from Germany 🙂

  35. Tommi White August 19, 2020 at 8:58 am - Reply

    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!

  36. Happy John August 19, 2020 at 8:58 am - Reply

    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

  37. Happy John August 19, 2020 at 8:58 am - Reply

    5:52 Only?… Huh!

    10:30:00 PM
    5/16/2019

    1/2 of an hour

  38. Happy John August 19, 2020 at 8:58 am - Reply

    These 2013 videos still seem to happen to be quite helpful!…

    10:24:30 PM
    5/16/2019

    1/2 of 60

Leave A Comment

*