Java SE 13: More Operations on Member Variables & Methods

Java    |    Intermediate
  • 8 videos | 1h 2m 39s
  • Includes Assessment
  • Earns a Badge
Rating 4.4 of 22 users Rating 4.4 of 22 users (22)
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

  • 2m 10s
  • 11m 5s
    In this video, learn how to override the .toString method provided by the Object base class. FREE ACCESS
  • Locked
    3.  Chaining Constructors
    11m 42s
    In this video, you will learn how to chain constructors to achieve code reuse. FREE ACCESS
  • Locked
    4.  Defining Static Member Variables
    9m 31s
    In this video, you will identify use cases for static variables. FREE ACCESS
  • Locked
    5.  Using Static Member Variables
    10m 17s
    In this video, you will define and use static member variables. FREE ACCESS
  • Locked
    6.  Accessing Static Members
    8m 9s
    Upon completion of this video, you will be able to recognize how static methods can be accessed by instances of a class. FREE ACCESS
  • Locked
    7.  Static and Non-static Methods
    8m 49s
    In this video, learn how to invoke static and non-static methods of a class. FREE ACCESS
  • 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 on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.6 of 57 users Rating 4.6 of 57 users (57)
Rating 4.6 of 37 users Rating 4.6 of 37 users (37)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.4 of 33 users Rating 4.4 of 33 users (33)
Rating 4.6 of 128 users Rating 4.6 of 128 users (128)
Rating 4.5 of 194 users Rating 4.5 of 194 users (194)