Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unit 2 Construction and Cloning Kirk Scott. Adonis From Wikipedia, the free encyclopedia Jump to: navigation, searchnavigationsearch For the Syrian poet,

Similar presentations


Presentation on theme: "Unit 2 Construction and Cloning Kirk Scott. Adonis From Wikipedia, the free encyclopedia Jump to: navigation, searchnavigationsearch For the Syrian poet,"— Presentation transcript:

1 Unit 2 Construction and Cloning Kirk Scott

2 Adonis From Wikipedia, the free encyclopedia Jump to: navigation, searchnavigationsearch For the Syrian poet, see Adunis.Adunis For other uses, see Adonis (disambiguation).Adonis (disambiguation)

3 Adonis, in Greek mythology, is the god of beauty and desire, and is a central figure in various mystery religions. His religion belonged to women: the dying of Adonis was fully developed in the circle of young girls around the poet Sappho from the island of Lesbos, about 600 BC, as revealed in a fragment of Sappho's surviving poetry. [1]Greek mythology beautydesiremystery religionsSappho Lesbos [1]

4 Adonis is one of the most complex figures in classical times. He has had multiple roles, and there has been much scholarship over the centuries concerning his meaning and purpose in Greek religious beliefs. He is an annually- renewed, ever-youthful vegetation god, a life- death-rebirth deity whose nature is tied to the calendar. His name is often applied in modern times to handsome youths, of whom he is the archetype. Adonis is often referred to as the mortal god of Beauty. Greek religious beliefslife- death-rebirth deity

5

6 This is an introductory unit. These are the units/chapters belonging to this section of the course: Unit 3, Singleton, book chapter 8. Unit 4, Prototype, book chapter 18. Unit 5, Builder, book chapter 15. Unit 6, Proxy, book chapter 11.

7 What will be given next is an extremely brief overview of these topics. The idea is to show that according to the organizational scheme for the course, they can be treated as belonging together, even though the book’s organizational scheme put them into chapters that were separated from each other.

8 Singleton Book definition: The intent of the Singleton pattern is to ensure that a class has only one instance and to provide a global point of access to it. Comment mode on: In other words, the singleton design pattern puts a constraint on the construction of objects.

9 Prototype Book definition: The intent of the Prototype pattern is to provide new objects by copying an example rather than by bringing forth new, uninitialized instances of a class. Comment mode on: In other words, the prototype design pattern bases the construction of a new object on an already existing object.

10 Builder Book definition: The intent of the Builder pattern is to move the construction logic for an object outside the class to be instantiated. Comment mode on: In other words, the builder design pattern moves the logic and code of construction into another class which becomes responsible for generating instances of a given class.

11 Proxy Book definition: The intent of the Proxy pattern is to control access to an object by providing a surrogate, or placeholder, for it. Comment mode on: In other words, the proxy design pattern provides a stand-in for a desired object while a reference to that object is being obtained, whether through construction or from an external source.

12 In summary: Singleton puts a constraint on construction. Prototype is closely related to cloning. Builder puts the responsibility for construction into an outside class. Proxy substitutes one object for another, desired object. In one way or another, these patterns all have something to do with cloning, construction, or the “replacement” of construction with something else.

13 As you will see when the patterns are presented, these are concise mnemonic devices for their most important characteristics: Singleton: One to a customer. Prototype: Make a partial copy. Builder: Offload and delay construction. Proxy: Stand-in.

14 The End


Download ppt "Unit 2 Construction and Cloning Kirk Scott. Adonis From Wikipedia, the free encyclopedia Jump to: navigation, searchnavigationsearch For the Syrian poet,"

Similar presentations


Ads by Google