Java SE 13: More Operations on Member Variables & Methods
Java
| Intermediate
- 8 videos | 1h 2m 39s
- Includes Assessment
- Earns a Badge
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 courseAppropriately override the .tostring method provided by the object base classCorrectly chain constructors to achieve code reuseIdentify use cases for static member variables
-
Define and use static member variablesRecognize how static methods can be accessed by instances of a classInvoke static and non-static methods of a classSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 10s
-
11m 5sIn this video, learn how to override the .toString method provided by the Object base class. FREE ACCESS
-
11m 42sIn this video, you will learn how to chain constructors to achieve code reuse. FREE ACCESS
-
9m 31sIn this video, you will identify use cases for static variables. FREE ACCESS
-
10m 17sIn this video, you will define and use static member variables. FREE ACCESS
-
8m 9sUpon completion of this video, you will be able to recognize how static methods can be accessed by instances of a class. FREE ACCESS
-
8m 49sIn this video, learn how to invoke static and non-static methods of a class. FREE ACCESS
-
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.