Modeling Entities in Java: Methods, Method Overloading, & Constructors
Java SE 15
| Intermediate
- 12 Videos | 1h 32m 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 courseimplement return values and types correctlycreate objects of a Java class and use getters and setters to edit fieldsoverload methods with the same name in Javarecall how overloaded methods work and how they can invoke one anotheruse the default, no-argument constructor to create objects
-
initialize fields in constructor definitionscreate and use parameterized constructors in Javacreate multiple constructors with different signaturesinitialize fields using the 'this' keywordreuse code using constructor chainingsummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview1m 51sUP NEXT
-
2.Using Return Statements10m 5s
-
3.Using Getters and Setters10m 46s
-
4.Defining Multiple Functions Using Method Overloading12m
-
5.Working with Method Overloading and Code Reuse9m 28s
-
6.Understanding and Using Default Constructors8m 20s
-
7.Initializing Fields in Constructors6m 38s
-
8.Creating Parameterized Constructors7m 22s
-
9.Overloading Constructors9m 2s
-
10.Using 'this' Keyword in Field Initializations6m 4s
-
11.Reusing Code through Constructor Chaining8m 30s
-
12.Course Summary2m 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.