Java SE 13: More Operations on Member Variables & Methods

Java SE 13    |    Intermediate
  • 8 Videos | 1h 5m 39s
  • Includes Assessment
  • Earns a Badge
Likes 20 Likes 20
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.

WHAT YOU WILL LEARN

  • 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

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 10s
    UP NEXT
  • Playable
    2. 
    Overriding .toString
    11m 5s
  • Locked
    3. 
    Chaining Constructors
    11m 42s
  • Locked
    4. 
    Defining Static Member Variables
    9m 31s
  • Locked
    5. 
    Using Static Member Variables
    10m 17s
  • Locked
    6. 
    Accessing Static Members
    8m 9s
  • Locked
    7. 
    Static and Non-static Methods
    8m 49s
  • Locked
    8. 
    Course Summary
    57s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.