No video

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

  Рет қаралды 522,713

Math and Science

Math and Science

11 жыл бұрын

Get the full course at: www.MathTutorDVD.com
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..

Пікірлер: 217
@ZhibinHong
@ZhibinHong 4 жыл бұрын
so basically you explained a concept my teacher failed to do so in 2 hours..
@TeoPooks
@TeoPooks 3 жыл бұрын
LMFAO YO WHY IS THIS TRUE 😭. My professor would fail to teach the class this and I was just confused. Syntax is the same throughout programming but for sum reason classes and objects in Java just confused me
@Diaming787
@Diaming787 4 жыл бұрын
I was confused with the entire concept of OOP for a long time, but this video is really clearing it up. Thank you!!
@Squawking_Squatcher
@Squawking_Squatcher 5 жыл бұрын
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!
@subratapodder5754
@subratapodder5754 4 жыл бұрын
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............
@MathAndScience
@MathAndScience 4 жыл бұрын
Thanks so much!
@jeremyjay46
@jeremyjay46 8 жыл бұрын
This is one of the best explanation of objects that I've found on YT. Really helped make it "click" for me. Thanks.
@bharatkumargupta
@bharatkumargupta 6 жыл бұрын
The tutorial is really easy to understand. Thanks for such an amazing explanation. Checking out more tutorials on your channel.
@1CheeseBurger
@1CheeseBurger Жыл бұрын
Thank you! Explained it better than a "beginner" java book AND my college's lecturer.
@EmilyAllan
@EmilyAllan 6 жыл бұрын
One of the best explanations I've seen on KZbin about objects in Java. You know what you are doing unlike other tutorials where they don't explain WHY its important. I wish all of your videos were up in entirety. Have you considered posting all of them for ad revenue?
@colinjamieson6065
@colinjamieson6065 7 жыл бұрын
Great Lesson, I have been batlling to grasp the linkage between the classes and the object creation
@johnniewalker8186
@johnniewalker8186 Жыл бұрын
I just remember this video after years. Now Im Senior Software Engineer. Thank you ❤️
@jj-xm5dq
@jj-xm5dq 10 жыл бұрын
can you please provide the link for the next lecture? Great lecture!!
@jamiestewart3072
@jamiestewart3072 3 жыл бұрын
was struggling with getting my head around these concepts but this is so helpful and i now understand, thank you
@andreastijerina7631
@andreastijerina7631 8 жыл бұрын
Awesome! Thank you so much! You have no idea how much this has helped me!
@MansourTP
@MansourTP 6 жыл бұрын
Thank you so much for this video Among all the videos, you are the only one who definded class and objects in easy way to understand
@yohannesalmaw1414
@yohannesalmaw1414 6 жыл бұрын
The best explanation ever for creating objects from classes in Java. Wow Thank a lot
@aliciastephan8470
@aliciastephan8470 9 жыл бұрын
Thought I would say that this video is extremely helpful for my AP computer science class. Hopefully I can buy your video series before my next test thank you!
@Stettafire
@Stettafire 9 жыл бұрын
Greetings from the UK:) I'm currently creating a java program that creates a 'student' object, and this was really helpful, thank you:)
@ye4us
@ye4us 3 жыл бұрын
Your one of the best tutors ever, like for real. I wish I had you as my teacher in High-School. no cap
@haltertopbabe
@haltertopbabe 3 жыл бұрын
this was incredibly helpful, thank you so much!!! you make it so easy to understand
@Mike-up3rs
@Mike-up3rs 3 жыл бұрын
super helpful video, your explanation made a lot more sense then a lot of places i have been learning from
@satoshinakamoto171
@satoshinakamoto171 6 жыл бұрын
this is hands down one of the most valuable java tutorial in existence. i will pay this guy when i am rich.
@luisishere987
@luisishere987 5 жыл бұрын
Thanks so much, helped me out tremendously for my AP Computer Science homework
@susml767
@susml767 9 ай бұрын
Oh my goodness, you are amazing brother. After millions and millions of videos, finallllllyyyy I found a person that can teach. 😢 ❤
@irahyvonne9232
@irahyvonne9232 9 жыл бұрын
can you make a tutorial in java with all the features of OOP(Abstraction,Inheritance,Encapsulation and Polymorphism) combined into one program???
@qaautomationcult3868
@qaautomationcult3868 4 жыл бұрын
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 : kzbin.info/door/0xat537YITJbN_9GSMUALA Fb page : facebook.com/learn.automation.testing linkedin page : www.linkedin.com/school/14580724/admin/ website: 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...
@SgtManiak
@SgtManiak 8 жыл бұрын
My instructor couldn't explain this as good as you did. Thank you very much.
@CodeWaka
@CodeWaka 3 жыл бұрын
THANK YOU!!!!!!! This was explained to me better than the Java Lang textbooks.
@yasiralassadi2007
@yasiralassadi2007 5 жыл бұрын
mate i never comment on videos but your video make me have to its a great way of explaining
@graham0
@graham0 4 жыл бұрын
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 :)
@potatoitis3326
@potatoitis3326 3 жыл бұрын
THANK YOU! First year as a CS student. Midterms are coming up. This video was so helpful!!
@tonykelly9469
@tonykelly9469 4 жыл бұрын
Excellent explanation (upper case class name convention aside), very clear. Better than the university lecture notes I have.
@conormeaney7223
@conormeaney7223 9 жыл бұрын
You explain things amazingly well!
@johnlestermontano157
@johnlestermontano157 3 жыл бұрын
Thank you so much! Because of this video made our lesson clear to me!❤️
@thefrontrowguyz3063
@thefrontrowguyz3063 8 жыл бұрын
This finally makes sense. Thank you for a great video. How do you access the rest of the series?
@Mariamak98
@Mariamak98 3 жыл бұрын
Wow u explained this very easily, the only one who I understood
@johnyeszhan7403
@johnyeszhan7403 7 жыл бұрын
Well done. Very clear explanation. Thank you, sir.
@luckychukiye8743
@luckychukiye8743 5 жыл бұрын
Thank you. Thi is good for review as Im learning about methods now
@ezechikezie5249
@ezechikezie5249 6 жыл бұрын
thanks a lot for ur simplicity of the concept
@kevind3946
@kevind3946 10 жыл бұрын
Awesome video. You explained classes and objects very well
@mashiro-san9335
@mashiro-san9335 3 жыл бұрын
Well explained sir!!! Very informative and easy to understand. Thank you (new aspiring programmer here)
@TheRohithsai
@TheRohithsai 9 жыл бұрын
almost 3 videos..... best one thumbs up :D thanks
@cindy-wz9cf
@cindy-wz9cf 3 жыл бұрын
wow one of the best tutorials I've seen by far
@jenniredfield
@jenniredfield 8 жыл бұрын
What's the next video after this? It'd help if there were numbers in the title of the video :) It's awesome though, it clarified some stuff for me Cheers x
@qaautomationcult3868
@qaautomationcult3868 4 жыл бұрын
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. Each of these statements has three parts (discussed in detail below): Declaration: The code set in bold are all variable declarations that associate a variable name with an object type. Instantiation: The new keyword is a Java operator that creates the object. Initialization: The new operator is followed by a call to a constructor, which initializes the new object. Please subscribe our youtube channel : kzbin.info/door/0xat537YITJbN_9GSMUALA Fb page : facebook.com/learn.automation.testing linkedin page : www.linkedin.com/school/14580724/admin/ website: www.qacult.com for various blogs and Upcoming Events
@thanossym2281
@thanossym2281 4 жыл бұрын
Great video! you teach really well! thank you ! :)
@happyjohn1656
@happyjohn1656 5 жыл бұрын
These 2013 videos still seem to happen to be quite helpful!... 10:24:30 PM 5/16/2019 1/2 of 60
@sublime_tv
@sublime_tv 4 жыл бұрын
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.
@qaautomationcult3868
@qaautomationcult3868 4 жыл бұрын
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. Each of these statements has three parts (discussed in detail below): Declaration: The code set in bold are all variable declarations that associate a variable name with an object type. Instantiation: The new keyword is a Java operator that creates the object. Initialization: The new operator is followed by a call to a constructor, which initializes the new object. Please subscribe our youtube channel : kzbin.info/door/0xat537YITJbN_9GSMUALA Fb page : facebook.com/learn.automation.testing linkedin page : www.linkedin.com/school/14580724/admin/ website: www.qacult.com for various blogs and Upcoming Events
@isharaperera9866
@isharaperera9866 6 жыл бұрын
Thanks for the great explanation sir!
@MohammedAMAlafifi
@MohammedAMAlafifi 10 жыл бұрын
Grate explanation , thank you very much,
@rinny21
@rinny21 2 жыл бұрын
Thanks this really helped me deeply understand objects in java👏
@tunasalad3919
@tunasalad3919 8 жыл бұрын
Great way of explanation..especially with examples..Kudos..(Y)
@johnypiper
@johnypiper 5 жыл бұрын
thanks for the tutorial...very understandable
@nyarukooo
@nyarukooo 6 жыл бұрын
OMG, Your voice is awesome, and you did absolutely good :)) Tnx
@alifbryan7257
@alifbryan7257 6 жыл бұрын
clear explanation, thanks!
@amukuncaroli6967
@amukuncaroli6967 5 жыл бұрын
thanks for breaking down for us . i understand it more
@thepalindromeadept4038
@thepalindromeadept4038 5 жыл бұрын
Nice, clear and well explained. Good job :D
@rezaarian237
@rezaarian237 5 жыл бұрын
finallllllllly someone explains it in English. thank you so much.
@Aspiret620
@Aspiret620 4 жыл бұрын
This tutorial was extremely helpful, thank you!
@MathAndScience
@MathAndScience 4 жыл бұрын
Welcome!
@zarastern2238
@zarastern2238 7 жыл бұрын
tnx, man! rly helped me out here. great lecture! +1 sub
@saneledlamini7117
@saneledlamini7117 5 жыл бұрын
The best ..I watch this every time before a Test
@qaautomationcult3868
@qaautomationcult3868 4 жыл бұрын
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 : kzbin.info/door/0xat537YITJbN_9GSMUALA Fb page : facebook.com/learn.automation.testing linkedin page : www.linkedin.com/school/14580724/admin/ website: 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...
@nathaliadias1726
@nathaliadias1726 3 жыл бұрын
This saved my Programming I grade, thank you!!!
@naeemislam7303
@naeemislam7303 6 жыл бұрын
best video i have ever seen on class and objects .thanku very much
@MathAndScience
@MathAndScience 6 жыл бұрын
Welcome!!
@scottscherzer3786
@scottscherzer3786 3 жыл бұрын
I never comment on videos also I am pressed for time because I have an assignment due soon but thank you so much for this content. Sometimes our teachers are so experienced in this field that they go fast because its easy for them. Thanks for dumbing it down this helped me a lot.
@snehaelizebeth6146
@snehaelizebeth6146 3 жыл бұрын
Thank you sir!! Love from India..!
@shavar67
@shavar67 7 жыл бұрын
This was really helpful !!
@ja8243
@ja8243 6 ай бұрын
Bruh this makes soo soo much sense. Thank you so much
@sarahamy911
@sarahamy911 4 жыл бұрын
Thank you so much for these videos. Would you please teach other high-level programming languages? Thanks a lot
@rohullahrahimi1093
@rohullahrahimi1093 2 жыл бұрын
I just want to write Thank you so much for this awesome video.
@lenardolalo7600
@lenardolalo7600 4 жыл бұрын
This channel very helpful ❤
@louispienaar456
@louispienaar456 8 жыл бұрын
very good explanation,thank you
@Prince_of_tragedy
@Prince_of_tragedy 4 жыл бұрын
that was more than great and helpful really thank you, but where please i can find your entire tutorial for java course.
@Test-zx2yy
@Test-zx2yy 2 жыл бұрын
Thank you. I was a great help on us.
@rishidesai9755
@rishidesai9755 9 жыл бұрын
I love how you explain everything so nicely! Great Vid! subscibers++
@williamhorn411
@williamhorn411 5 жыл бұрын
oof, forgot that semi-colon.
@cezarlagmay9575
@cezarlagmay9575 5 жыл бұрын
@@williamhorn411 he also forgot the symbol/identifier "int subscribers;"
@williamhorn411
@williamhorn411 5 жыл бұрын
@@cezarlagmay9575 Meh, it's safe to assume in this context that subscribers has already been defined. The semi-colon is the silent killer of beginners.
@whosbeforebros
@whosbeforebros 8 жыл бұрын
learned more about planes than java
@clarenskybenoit8755
@clarenskybenoit8755 8 жыл бұрын
+whosbeforebros ? family
@jonmarsh7914
@jonmarsh7914 4 жыл бұрын
then youre paying attention to the wrong thing
@qaautomationcult3868
@qaautomationcult3868 4 жыл бұрын
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. Each of these statements has three parts (discussed in detail below): Declaration: The code set in bold are all variable declarations that associate a variable name with an object type. Instantiation: The new keyword is a Java operator that creates the object. Initialization: The new operator is followed by a call to a constructor, which initializes the new object. Please subscribe our youtube channel : kzbin.info/door/0xat537YITJbN_9GSMUALA Fb page : facebook.com/learn.automation.testing linkedin page : www.linkedin.com/school/14580724/admin/ website: www.qacult.com for various blogs and Upcoming Events
@rohatkarabulut2476
@rohatkarabulut2476 3 жыл бұрын
This made me laugh bro, but still this video was extremely useful 👌
@abdulrahmanmohammed9773
@abdulrahmanmohammed9773 4 жыл бұрын
I love it. Thanks
@googleuser7454
@googleuser7454 4 жыл бұрын
Great explanation
@cjm101
@cjm101 4 жыл бұрын
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.
@pascaldev4085
@pascaldev4085 5 жыл бұрын
So good explained! Thank you from Germany :)
@MathAndScience
@MathAndScience 5 жыл бұрын
Thanks for the great feedback! Good luck! Jason, MathAndScience.com
@nickvolz4442
@nickvolz4442 2 жыл бұрын
Good video and explanation.
@Jhon-hy6xk
@Jhon-hy6xk 5 жыл бұрын
Nice video. Hei does somebody know what is the difference between that way of make class from this way: public class Lesson4 { public Lesson(){ this.exemple; this.exemple2; } } I saw this in mobile java aplication, it hadn't main(),istead it had the same name of its class as a constructor. Is the reason because it was for Android? thanks
@dylanhess4906
@dylanhess4906 3 жыл бұрын
Good video, thank you!
@deepakpandey4902
@deepakpandey4902 9 жыл бұрын
awesome explanation
@Milanista.92
@Milanista.92 9 жыл бұрын
well done bro. nice vid
@williamwallace234
@williamwallace234 4 жыл бұрын
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.
@lambmaster
@lambmaster 10 жыл бұрын
Great explanation! I think I get it now. So, when creating the object piperSaratoga, can I put something else into it other than "new aircraft()"? Just curious.
@pk951
@pk951 5 жыл бұрын
Great video. Wish my professor taught this way. All she does is talk about stuffs that no one understands.
@SmartProgramming
@SmartProgramming 5 жыл бұрын
nice one, keep it up 👍👍🙂🙂
@xcvxcvcxvxvcq
@xcvxcvcxvxvcq 4 жыл бұрын
best explanation of java OOP on youtube!
@MathAndScience
@MathAndScience 4 жыл бұрын
Thank you! Jason, MathAndScience.com
@rik9833
@rik9833 Жыл бұрын
a class is a template for our object; a object is where the the computer stores memory in the program. type name = new type()
@sraptes
@sraptes 3 жыл бұрын
Helpful!
@EvaSlash
@EvaSlash 11 жыл бұрын
if it was not for your videos I would be totally screwed in my class right now. hurry and please release more volumes! I own vol 1 and 2 so far and plan to pick up 3.
@liliacfury
@liliacfury 3 жыл бұрын
After saying ”aircraft piperSaratogs = new aircraft();” can you replace ”new aircraft()” with any thing different? Like maybe just one or a few of the specific variables and / or functions created within the class?
@Jameselcome_303
@Jameselcome_303 6 жыл бұрын
Great video! how do you access the example?
@Fnaf-vh9cs
@Fnaf-vh9cs 3 жыл бұрын
nice explication thanks man a bit late but thank you SIR.
@brianschwantner8729
@brianschwantner8729 8 жыл бұрын
I wish you were my professor cause mine sucks. Thanks for the video, very helpful!
@lucjanmusk
@lucjanmusk 3 жыл бұрын
ohhhhh, wow was overtaken by this classes in java but right now System.out.println("I understand all of them");
@milankbudha
@milankbudha 4 жыл бұрын
what is the purpose of using new keyword while creating object..plzzz leave a reply.thank you
@Jack-it5yg
@Jack-it5yg 2 жыл бұрын
Thank you!
@Duha_01
@Duha_01 6 жыл бұрын
should we always create the object in the main method
@tannichoudhury8718
@tannichoudhury8718 3 жыл бұрын
Where can I find exercises that Jason was talking about?
@rijosey2152
@rijosey2152 5 жыл бұрын
thanks bro great vido
@brunelngoufack9976
@brunelngoufack9976 4 жыл бұрын
thanks your the best
Java Programming Tutorial - 01 - Introduction To Methods
20:21
Math and Science
Рет қаралды 169 М.
Советы на всё лето 4 @postworkllc
00:23
История одного вокалиста
Рет қаралды 4,7 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 72 МЛН
Comfortable 🤣 #comedy #funny
00:34
Micky Makeover
Рет қаралды 10 МЛН
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 30 МЛН
Object-Oriented Programming Java Tutorial (Java OOP) #71
14:07
Learn Java - Exercise 04x - Defining a Class & Creating Objects
7:43
Math and Science
Рет қаралды 20 М.
Classes & Objects | Java | Tutorial 26
13:52
Giraffe Academy
Рет қаралды 143 М.
Learn Java in 14 Minutes (seriously)
14:00
Alex Lee
Рет қаралды 4,6 МЛН
P21 - Constructors in Java | Core Java | Java Programming |
27:57
H Y R Tutorials - Telugu
Рет қаралды 149 М.
Fastest Way to Learn ANY Programming Language: 80-20 rule
8:24
Sahil & Sarra
Рет қаралды 808 М.
Java Constructors - Full Tutorial
7:38
Coding with John
Рет қаралды 350 М.
Java constructors 👷
10:37
Bro Code
Рет қаралды 172 М.
Python Decorators in 15 Minutes
15:14
Kite
Рет қаралды 434 М.
Советы на всё лето 4 @postworkllc
00:23
История одного вокалиста
Рет қаралды 4,7 МЛН