Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Types

Design Patterns


Patterns

...

Code Block
BankAccount account = new BankAccount.Builder(1234L)
            .withOwner("Marge")
            .atBranch("Springfield")
            .openingBalance(100)
            .atRate(2.5)
            .build();


Anti-Patterns

An anti-pattern is a common response to a recurring problem that is usually ineffective, and sometimes counterproductive.

Telescoping Constructor Pattern

  • overloading constructor with various parameters




References

ReferenceURL
OO Design Patterns Explainedhttps://www.youtube.com/watch?v=aiSAO2AXa9g