Modeling Entities in Java: Methods, Method Overloading, & Constructors

Java SE 15
  • 12 Videos | 1h 32m 53s
  • Includes Assessment
  • Earns a Badge
Modeling complex entities involves defining and invoking methods and constructors. Furthermore, defining robust and reusable code requires learning important mechanisms for code re-uses, such as constructor chaining and method overloading. Use this course to delve into these important techniques that are required to write clean and maintainable Java code. Learn how to define methods with the same name but different signatures (i.e., different order and type of input arguments), invoke overloaded methods, and add constructors to a class. This course will also enable you to use the 'this' keyword to invoke multiple constructors, also known as constructor chaining. By the time you are done with this course, you will have the skills to use important code re-use mechanisms such as method overloading and constructor chaining in java.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    implement return values and types correctly
    create objects of a Java class and use getters and setters to edit fields
    overload methods with the same name in Java
    recall how overloaded methods work and how they can invoke one another
    use the default, no-argument constructor to create objects
  • initialize fields in constructor definitions
    create and use parameterized constructors in Java
    create multiple constructors with different signatures
    initialize fields using the 'this' keyword
    reuse code using constructor chaining
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    1m 54s
    UP NEXT
  • Playable
    2. 
    Using Return Statements
    10m 8s
  • Locked
    3. 
    Using Getters and Setters
    10m 49s
  • Locked
    4. 
    Defining Multiple Functions Using Method Overloading
    12m 3s
  • Locked
    5. 
    Working with Method Overloading and Code Reuse
    9m 31s
  • Locked
    6. 
    Understanding and Using Default Constructors
    8m 23s
  • Locked
    7. 
    Initializing Fields in Constructors
    6m 41s
  • Locked
    8. 
    Creating Parameterized Constructors
    7m 25s
  • Locked
    9. 
    Overloading Constructors
    9m 5s
  • Locked
    10. 
    Using 'this' Keyword in Field Initializations
    6m 7s
  • Locked
    11. 
    Reusing Code through Constructor Chaining
    8m 33s
  • Locked
    12. 
    Course Summary
    2m 13s

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.