HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Learn Java Programming - Multiple Classes in One File Tutorial

26,668 views November 8, 2015 8:06

Watch on YouTube
ChannelDaniel Ross

Description from the creator

Up until now, I have only included a single class inside of each .java source code file (compilation unit). In Java, you can place as many classes as you like inside of a single source code file. However, there can be only one public class per source code file and the class declaration name must match the name of the file. I haven't talked about access modifiers yet, so don't worry about the public keyword yet. In this tutorial, I will include two classes in the same source code file and we will compile the source code file and see what happens. This tutorial will build on concepts from my Introduction to Methods Tutorial.

About this tutorial

Daniel Ross published this 8:06 video tutorial on November 8, 2015. It has been watched 26,668 times on YouTube.

Category
Education
Duration
8:06
Published
November 8, 2015
Views
26,668
Likes
135

Tags

Share

This tutorial in other languages