This course will help leverage your conceptual understanding to produce proper object-oriented code. You will learn how to replace procedural code with objects for the sake of correctness, flexibility, and maintainability.
Procedural code can be replaced with objects to increase correctness, flexibility, and maintainability. In this course, Making Your Java Code More Object-oriented, you’ll learn how to design truly object-oriented classes in the Java programming language. First, you’ll learn how to represent a discrete object state and behavior to avoid imperative branching constructs. Next, you’ll discover that null references are a needless pain. Finally, you'll explore alternatives to null - substitute objects and optional objects. When you're finished with this course, you’ll have the skills and knowledge of designing classes that avoid traditional imperative constructs, with features resulting from orchestrating well-encapsulated objects rich in behavior.
Course Overview (Music) Hi everyone! My name is Zoran Horvat. Welcome to my course, Making your Java Code More Object-Oriented. I am a principal consultant at Coding Helmet, and part of my work involves reviewing other people's code. What I find funny is that most of the code I read is really not object-oriented; it is rather procedural with classes and modules only being the formal containers of code. Well, in this course we are going to show what it takes to write true object-oriented code. You'll see how to avoid branching, especially around Booleans and nulls. You will learn how to never use a null reference, and how to encapsulate object's state and expose behavior. By the end of this course, you will be able to recognize your own errors of the past and develop a better coding style. Before beginning the course, you should be familiar with such concepts as polymorphism, inheritance, and similar. You should feel at home with Java like having no second thoughts about control structures or functional interfaces, for example. From here you should be able to dive into advanced courses on object-oriented programming and design. I hope you will join me on this journey to learn object-oriented programming with the Making Your Java Code More Object-Oriented course at Pluralsight.