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

Java SE 15    |    Intermediate
  • 12 Videos | 1h 37m 17s
  • 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 51s
    UP NEXT
  • Playable
    2. 
    Using Return Statements
    10m 5s
  • Locked
    3. 
    Using Getters and Setters
    10m 46s
  • Locked
    4. 
    Defining Multiple Functions Using Method Overloading
    12m
  • Locked
    5. 
    Working with Method Overloading and Code Reuse
    9m 28s
  • Locked
    6. 
    Understanding and Using Default Constructors
    8m 20s
  • Locked
    7. 
    Initializing Fields in Constructors
    6m 38s
  • Locked
    8. 
    Creating Parameterized Constructors
    7m 22s
  • Locked
    9. 
    Overloading Constructors
    9m 2s
  • Locked
    10. 
    Using 'this' Keyword in Field Initializations
    6m 4s
  • Locked
    11. 
    Reusing Code through Constructor Chaining
    8m 30s
  • Locked
    12. 
    Course Summary
    2m 10s

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.