Classes and Objects
This part of the tutorial covers the basics of class definition, object creation, nesting classes, enumerations, declaring member variables, methods, and constructors.
-
Creating Classes
Syntax to create and initialize primitive type variables.
-
Defining Methods
Adding methods to a class definition.
-
Providing Constructors for your Classes
Providing Constructors for your Classes.
-
Calling Methods and Constructors
How to pass information to a method or a constructor.
-
Creating and Using Objects
How to create and use objects efficiently.
-
More on Classes
Understanding the dot operator, the this keyword and access control.
-
Nested Classes
Defining a class within another class.
-
Enums
Working with enums.
-
When to Use Nested Classes, Local Classes, Anonymous Classes, and Lambda Expressions
When to Use Nested Classes, Local Classes, Anonymous Classes, and Lambda Expressions.