Singleton Design Pattern Tutorial

Derek Banas September 13, 2012
Video Thumbnail
Derek Banas Logo

Derek Banas

View Channel

About

I make tutorials based on your requests. I will cover any topic you can imagine. Ask me questions anytime on Discord : https://discord.gg/pFkpxYC7rQ

Video Description

Get the Code: http://goo.gl/0yVzM Best Design Patterns Book : http://goo.gl/W0wyie Welcome to my Singleton Design Pattern Tutorial. The Singleton pattern is both easy to understand as well as useful. I'll demonstrate first how to implement the Singleton pattern. Then I'll provide and example of its usefulness with a Scrabble example. Threads can sometimes play havoc with this pattern, so I'll show you how to avoid those problems. I'll also review how to use threads, LinkedLists and more.

You May Also Like

Essential Camera Bag Upgrades

AI-recommended products based on this video

Loading...
eazpower for Magsafe Power Bank 10000mAh, Magnetic Battery Pack Wireless, 20W PD Fast Charging, Compact Portable Charger with Built-in Cables and Stand for iPhone 16/15/14/13/12/ Apple Watch/Airpods

eazpower for Magsafe Power Bank 10000mAh, Magnetic Battery Pack Wireless, 20W PD Fast Charging, Compact Portable Charger with Built-in Cables and Stand for iPhone 16/15/14/13/12/ Apple Watch/Airpods

(330)
$39.99
PrimeFREE delivery Sat, Jun 14
200+ bought in past month
Loading...
SanDisk 64GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXU-064G-GN4IN

SanDisk 64GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXU-064G-GN4IN

(71,074)
$21.99$16.59
FREE delivery Sun, Aug 10 on your first order
500+ bought in past month
Loading...
SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXD-128G-GN4IN
Best Seller

SanDisk 128GB Extreme PRO SDXC UHS-I Memory Card - C10, U3, V30, 4K UHD, SD Card - SDSDXXD-128G-GN4IN

(71,074)
$29.99$26.61
FREE delivery Sun, Aug 10 on your first order
4K+ bought in past month
Loading...
Lexar 128GB Micro SD Card, microSDXC UHS-I Flash Memory Card with Adapter - Up to 100MB/s, A1, U3, Class10, V30, High Speed TF Card

Lexar 128GB Micro SD Card, microSDXC UHS-I Flash Memory Card with Adapter - Up to 100MB/s, A1, U3, Class10, V30, High Speed TF Card

(26,884)
$18.99
FREE delivery Wed, Aug 20 on your first order
5K+ bought in past month
Loading...
Lexar EQ790 4TB SSD M.2 2280 PCIe Gen4x4 NVMe 1.4, Blazing Speeds Up to 7000MB/s Read 6000MB/s Write for Intense Workloads & PS5 PC Gaming, High Performance Internal Solid State Drive

Lexar EQ790 4TB SSD M.2 2280 PCIe Gen4x4 NVMe 1.4, Blazing Speeds Up to 7000MB/s Read 6000MB/s Write for Intense Workloads & PS5 PC Gaming, High Performance Internal Solid State Drive

(334)
$319.99
100+ bought in past month
Loading...
koolehaoda Professional Gimbal Head Tripod Head Aluminum Alloy Heavy Duty 360° Panoramic with Arca-Swiss Standard 1/4 inch QR Plate for DSLR Cameras up to 55.11lbs/25kg. (GH-3)

koolehaoda Professional Gimbal Head Tripod Head Aluminum Alloy Heavy Duty 360° Panoramic with Arca-Swiss Standard 1/4 inch QR Plate for DSLR Cameras up to 55.11lbs/25kg. (GH-3)

(63)
$168.98
FREE delivery Thu, Jun 19
Loading...
Ball Head Manbily Tripod Head Metal Aluminum Body 360° Panoramic Monopod Head with Extra Arca Swiss Quick Release Plate, Load up to 17.6lbs/8kg,Camera Head for DSLR, Camcorder, Slider (Red)

Ball Head Manbily Tripod Head Metal Aluminum Body 360° Panoramic Monopod Head with Extra Arca Swiss Quick Release Plate, Load up to 17.6lbs/8kg,Camera Head for DSLR, Camcorder, Slider (Red)

(274)
$85.26$77.52
FREE delivery Jun 17 - 19Only 10 left in stock.
Loading...
Heavy Duty Tripod Gimbal Head, Aluminum Alloy 360° Panorama Gimbal with for Arca Swiss Standard Quick Release Plate and Bubble Level, with 1/4 Inch and 3/8 Inch Screws

Heavy Duty Tripod Gimbal Head, Aluminum Alloy 360° Panorama Gimbal with for Arca Swiss Standard Quick Release Plate and Bubble Level, with 1/4 Inch and 3/8 Inch Screws

(0)
$202.00
FREE delivery Jun 27 - Jul 10
Loading...
NEEWER Zf Handgrip L Shape Grip for Nikon Z f, Ultra Thin Retro Formfitting Camera Mounting Baseplate with Handle & Aluminum Shutter Button Cap, Compatible with Arca Swiss Tripod Fluid Head, CA073

NEEWER Zf Handgrip L Shape Grip for Nikon Z f, Ultra Thin Retro Formfitting Camera Mounting Baseplate with Handle & Aluminum Shutter Button Cap, Compatible with Arca Swiss Tripod Fluid Head, CA073

(236)
$33.99
FREE delivery Thu, Jun 19 on your first order