In this video, Doug Winnie explains what an object is in Java. Objects are the core building blocks in object-oriented languages like Java. Every object is an instance of a class and are used to hold values.
- [Instructor] In object-oriented programming,…everything is an object.…In fact, we have been working with objects all this time.…You might just not have realized it.…Let's take a simple integer, int my value equals five.…When we create the variable, we are creating an object.…In fact, we are creating an object…that is defined as an integer.…Objects are defined using classes.…When we create an object, it is an instance of the class.…The example variable we have here…doesn't really make it clear exactly what is going on.…
That is because it is shorthand for something more verbose.…We are creating an object that is a new instance…of the integer class…and we are assigning it the value of five.…We can write that out a little more clearly.…If I type in int…another value…is equal to a new integer with a value of five.…The new statement indicates that…we are creating a new instance of a class.…
That instance becomes a new integer object…that we give the name another value.…We are using the int statement to type our variable…
- The history of Java
- Setting up your development environment
- Working with values and variables
- Using methods and functions
- Capturing user input
- Creating conditional tests
- Using loops
- Creating and changing arrays
- Object-oriented programming in Java
- Defining permissions
- Extending classes
Skill Level Beginner
Java Essential Training for Studentswith Peggy Fisher3h 6m Intermediate
Computer Science Principles: The Internetwith Doug Winnie59m 30s Beginner
1. Intro to Java
2. Define Actions Using Code
3. Repeat Actions and Test for Conditions
4. Object-Oriented Programming Basics
Next steps1m 44s
- 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.