Download presentation
Presentation is loading. Please wait.
1
CS 4233 : Object-Oriented Analysis and Design Concrete Factory Abstract Factory
2
Outline TerpPaint exampleTerpPaint –This code makes you realize that the word “code” is not a Freudian Slip –It needs desperate help Factory example (vertex) –Code available Abstract Factory (house) –Code available
3
Outline TerpPaint exampleTerpPaint
4
Concrete Factory Concrete Factory – delegate to a class the responsibility of constructing objects –Encapsulates object creation –Enables growth without bloat
5
Note all methods are accessed In static fashion. Problems?
6
Vertex Example Concrete Factory – delegate to a class the responsibility of constructing objects –Encapsulates object creation
7
House (Abstract) Factory Provides an Interface for creating families of related or dependent objects without specifying their concrete classes
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.