Join Todd Perkins for an in-depth discussion in this video Classes, part of Learning Java Applications.
- Now we'll review Java classes.…To create a class, we're going to expand our project.…And in the default package, I'm going to right-click…and choose New, Class.…You can always choose another option…by clicking the drop-down menu…in the toolbar and choosing Class…or going to File, New, Class,…however you like.…So now I'm creating a new class…and I'm going to call this class MyClass.…It's going to be public.…I'm not going to include the main method,…and I'm going to click Finish.…
So here in MyClass, I'll write a little bit of code.…I'm going to create one public property.…We'll call this myNum.…We'll set it equal to one.…I'm going to create the constructor method.…Remember, the constructor method,…it calls when you create a new instance of an object.…So every time we create an instance of MyClass,…this code inside the constructor method is going to run.…So I'll call a print statement…and just print out "constructor!"…And then we'll create a method.…Call this myMethod,…and then we'll use a print line again.…
I'm just going to copy and paste.…
- Installing Java and Eclipse
- Understanding basic Java syntax
- Handling Java errors
- Creating a UI with Swing
- Creating tables and connecting to data sources for tables
- Publishing a JAR file
- Installing NetBeans
- Creating JSP pages
- Setting up and connecting to databases
- Creating Java-based Android Studio projects
Skill Level Beginner
Java Essential Training for Studentswith Peggy Fisher3h 6m Intermediate
1. Install Java and an IDE
2. Java Basics Review
3. Create a User Interface with Swing
4. Tables and Data Sources
5. Application Distribution and Deployment
Publish a runnable JAR file2m 32s
6. Server-Side Java: JSP and Databases
7. Android Development
Next steps1m 16s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.