Java SE 13: More Operations on Member Variables & Methods


Overview/Description
Expected Duration
Lesson Objectives
Course Number
Expertise Level



Overview/Description

This course explores member functions and their invocation in Java. learners begin by studying object references and learning the subtleties and nuances of how these references sometimes lead to unexpected results in a program. Learn to use a copy constructor to break references that existed from rectangle objects to the point objects and how they become self-sufficient. Next, you will see that the classes you created often have multiple overloaded methods, which can lead to code duplication. You will learn how to correctly chain the implementations of overloaded constructors and other overload methods. You will also begin to understand the reference variable, 'this' keyword, to avoid naming conflicts in constructor chaining. You will see how to create variables or methods that ought to be one per class, rather than one per instance using the static keyword. Finally, you will become familiar with the different rules that govern how static members and methods are accessed, and how some forms of access that are allowed by the Java compiler are not considered a best practice.



Expected Duration (hours)
1.0

Lesson Objectives

Java SE 13: More Operations on Member Variables & Methods

  • discover the key concepts covered in this course
  • appropriately override the .toString method provided by the Object base class
  • correctly chain constructors to achieve code reuse
  • identify use cases for static member variables
  • define and use static member variables
  • recognize how static methods can be accessed by instances of a class
  • invoke static and non-static methods of a class
  • summarize the key concepts covered in this course
  • Course Number:
    it_jdcojdj_03_enus

    Expertise Level
    Intermediate