Modeling Entities in Java: Defining Custom Classes & Objects
Java
| Intermediate
- 11 videos | 1h 29m 40s
- Includes Assessment
- Earns a Badge
Modeling entities in the real world require you to create custom classes to add to the various built-in classes already provided by Java. Creating such custom classes is key to harnessing the power of object-oriented programming (OOP) in Java. This course focuses on defining such custom classes and then creating objects. Make the most of this course by exploring custom classes, the use of constructors, and modifiers such as private and public. You will also learn the idiomatic Java method of working with getter and setter methods as well as conventions in naming, input parameters, and return types from such methods. After completing this course, you'll not only be able to define custom classes to serve as types in your programs but also instantiate and use objects of these custom classes.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseInstantiate objects of built-in java classesCreate objects in java and access object informationPerform operations on java objectsCreate member variables in java and view their valuesCreate constructors and use them to instantiate objects in java
-
Define constructors and use them to initialize member variables in javaCreate, access, and view private member variables in javaDefine and invoke private methods in javaExplore type safety in getter methods and edit member fields with setter methods in javaSummarize the key concepts covered in this course
IN THIS COURSE
-
1m 29sLearn to leverage Java's OOP and built-in classes with your own instantiated custom classes and objects. Model entities, form public and private constructors along with access modifiers as you master idiomatic Java getter and setter methods, naming conventions, input parameters, and return types. FREE ACCESS
-
11m 9sWatch how to declare and type check your string variables, instantiate objects of built-in Java classes, invoke the constructor method via the new keyword, and apply the concatenate operator, as you build your coding skills. FREE ACCESS
-
8m 24sExperiment with built-in methods, such as .toString and .getClass in both built-in and user-defined classes, to create objects and view data. FREE ACCESS
-
8m 24sAdd a new user-defined class to see how to perform operations on Java objects. Use the .equals method inherited from java.lang.Object to evaluate memory locations. FREE ACCESS
-
11m 6sSee how to use the java.lang.Object base class to create member variables in Java and view their values. FREE ACCESS
-
7m 45sInvoke a three argument constructor to see how to create constructors and use them to instantiate objects in Java. FREE ACCESS
-
10m 43sDiscover how to interpret IntelliJ warnings and use the "this" keyword to disambiguate arguments as you initialize your fields with constructors. FREE ACCESS
-
10m 30sLearn to create, access, and view member variables as private Java objects to preserve their encapsulation. FREE ACCESS
-
8m 4sRecognize that access modifiers public and private apply not only to fields or member variables, but also to member functions, as you define and invoke private Java methods. FREE ACCESS
-
9m 40sNotice how to run type and safety checks in intelliJ as you invoke getter methods and edit member fields with setter methods in Java. FREE ACCESS
-
2m 25sCombine Java's OOP and built-in classes with your own instantiated custom classes and objects. Model entities, form public and private constructors along with access modifiers as you master idiomatic Java getter and setter methods, naming conventions, input parameters, and return types. FREE ACCESS
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.