Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Clean Code with Multiple Classes

via CodeSignal

Overview

Explore principles for maintaining clean code with multiple classes. Learn about class collaboration, interfacing, abstract classes, managing dependencies, practicing polymorphism, and handling exceptions across classes.

Syllabus

  • Unit 1: Class Collaboration and Coupling
    • Refactor Responsibilities for Bonus Calculation
    • Simplify Chained Method Calls
    • Eliminate the Middle Man Code Smell
  • Unit 2: Interfaces and Abstract Classes in Clean Code
    • Interfaces for Flexible Payment Solutions
    • Refactor Payment Processing with Interfaces
    • Harnessing Abstract Classes for Flexibility
  • Unit 3: Dependency Management between Classes
    • Decoupling Car and Engine Classes
    • Decoupling for Flexible Notifications
    • Decouple Using the Factory Pattern
  • Unit 4: Polymorphism in Practice
    • Polymorphism in Animal Feeding Task
    • Mastering Polymorphism with Animal Behaviors
  • Unit 5: Handling Exceptions Across Classes
    • Refactor Exception Handling in Java
    • Refactor Exception Handling with Unchecked Exceptions

Reviews

Start your review of Clean Code with Multiple Classes

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.