The Factory Design Pattern

Similar Posts

  • Java IO Streams

    Java IO Streams represent either an input source, or an output destination where you are trying to send receive/data. This can be to a console window, reading a file from a disk (or SSD), network communication, etc. Java uses the concept of IO streams, and how to handle them, almost identically between all sources. This…

  • Built in Java Classes

    Most modern languages support many of the data types we’ve looked at so far this term, including Stacks, Queues, Hash Maps/Dictionaries, and more. Many of these are supported within the language itself, often through a utility package, or something similar which can be imported, or from a third party library that can be imported. Which…

  • Java’s main Method

    Just like in C++, each executable Java project should have a main method. This isn’t just the “main” method that is run, but an actual method called main(). If you look at the previous page for creating a file, we can start from there. This will be a little different from the C++ main method,…

  • Intro to Java Classes

    This introduction/refresher to Java Classes is assuming that you’ve worked with some Object Oriented language before, like C++, or maybe even Java and you just need a quick refresher. In Java, everything you build will be a class, with very few exceptions. to define a class, you will need a file name, with the same…