Loading...

This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Java
For more information, please see full course syllabus of Java
Java Classes, Objects, and Methods
Lecture Description
In this lesson our instructor talks about classes, objects, and methods. First he talks about classes, objects, and methods. Second, he discusses instance variables, set methods, get methods, primitive types, reference types, and constructors. Finally, he finishes with seven example videos.
Bookmark & Share
Embed
Share this knowledge with your friends!
Copy & Paste this embed code into your website’s HTML
Please ensure that your website editor is in text mode when you paste the code.(In Wordpress, the mode button is on the top right corner.)
×
- - Allow users to view the embedded video in full-size.
Next Lecture
Previous Lecture
0 answers
Post by Michael Scott on November 3, 2015
How about having the Example codes available as a text file download? Much easier to offer this to students as a starting point so they can modify it.
0 answers
Post by Kitt Parker on July 10, 2015
I wish the code was available, I'd like to tinker with it. I could copy it from the screen, but that takes too long.
1 answer
Last reply by: Kitt Parker
Fri Jul 10, 2015 12:11 PM
Post by John Bosco on July 3, 2013
Could you explain what all of the placeholders are in the example slides? For example: %S, %d, /n, and also %.2f
0 answers
Post by Phil Wyder on March 18, 2013
can a float or a double be negative? For example: -21.23234
0 answers
Post by JOSEPH PELLAM on March 18, 2013
I copied your code for the Squaresandcubes code but the following code for 1 thru 0:
System.out.printf("%d\t%d\t%d
"), x, (x * x), (x * x * x ));
x = 1;
Generates the following error for each line as follows:
C:\Users\jpellam.DEVELOPMENT\Documents\NetBeansProjects\squaresandcubes\src\squaresandcubes\Squaresandcubes.java:24: not a statement
System.out.printf("%d\t%d\t%d
"), x, (x * x), (x * x * x ));
C:\Users\jpellam.DEVELOPMENT\Documents\NetBeansProjects\squaresandcubes\src\squaresandcubes\Squaresandcubes.java:24: ';' expected
Not sure what I am missing. Thanks
0 answers
Post by Naeif Rafeh on March 6, 2013
I have problem from the Calendar class I have no idea why Ecleps did now recognized the Clendar Class
or did not import the Calendar class
0 answers
Post by Ovanes Mikaelian on January 4, 2013
After setting up the "public class accountcredit", which extension do we use to save the file - .class or .java? Thank you.
1 answer
Wed Nov 7, 2012 6:38 PM
Post by Keron John on November 7, 2012
I need to know where is the other class being called exactly in the code, I mean the precise lines in the code that are calling the other class, as I'm trying to do this and failing miserably.
3 answers
Last reply by: Annette Hoult
Sat Oct 27, 2012 6:33 PM
Post by Sergio Gutierrez on August 22, 2012
what is this Printf?? this drives me crazy!!
0 answers
Post by Jacob Mack on August 6, 2012
I apologize as I was able to get public class accounntcredit to compile. I guess most textbooks just use the capital letter naming convention.
0 answers
Post by Jacob Mack on August 6, 2012
Maury, I notice you do not capitalize like so:
public class AccountCredit. To have public class accountcredit from what I understand could cause a compile error, but I could be mistaken. Thank you for taking time out to clarify this. I really enjoy working watching and working on programming with your videos.
0 answers
Post by Tanaroek Thanaaphiwong on July 7, 2012
what happens if the number of each account becomes 0, even though they are written 500 or 100 on the page. does anyone know how to fix this problem
0 answers
Post by Matthew Lipman on October 19, 2011
Dear Hillstrom, seems u are smart by nature, easy to understand anything from you : )
i have a question, can you provide leasson for Java SWING!?
Thanks :)
2 answers
Last reply by: Mick Coyne
Wed Oct 10, 2012 10:09 PM
Post by Jethro Jones on February 27, 2011
I'd really like to have the sample code for these lessons so that I can follow along and tweak on my computer while I watch.