From the course: Learning Java 11
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
Classes in Java - Java Tutorial
From the course: Learning Java 11
Classes in Java
- [Narrator] In this chapter, we will continue to talk about program design and about how we can make our programs readable to other software developers. As you enter the workforce, there are often several software developers working on the same program, so it's essential to write code in a way that's easy to read and understand. A lot of times, I'll forget about code that I've written six months ago. And if it's written in a way where it's hard to understand, I have to take a significant amount of time to understand it before I can add functionality to it. We want to prevent that. One way to make our program easier to read and understand is with classes. We've seen classes a little bit before because all of our code so far has been contained within the main class. But now we are going to dive a little deeper. Everything we see, hear and experience in everyday life can be represented in code. We've represented the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Classes in Java4m 55s
-
(Locked)
Constructors in Java6m 50s
-
(Locked)
Creating a class in Java3m 57s
-
(Locked)
Creating instances in Java4m 57s
-
(Locked)
Instance methods vs. class methods2m 52s
-
(Locked)
Using instance methods in Java2m 47s
-
(Locked)
Instance and class variables in Java3m 56s
-
(Locked)
Review: Classes vs. instances1m 57s
-
(Locked)
Solution: Bank account balance1m 19s
-
(Locked)
-