Amazon.com Widgets In singleton class, why we need assignment and copy constructor to be in private
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 01, 2014, 04:24:01 PM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Study Group
| |-+ Objective-C Quizzes
| | |-+ Chapter 9 - Polymorphism, Dynamic Typing, and Dynamic Binding
| | | |-+ In singleton class, why we need assignment and copy constructor to be in private
Pages: [1] Go Down
Print
Author Topic: In singleton class, why we need assignment and copy constructor to be in private (Read 4329 times)
adi12345
Newbie
*
Posts: 1


Email




on: June 11, 2010, 09:20:51 PM

Can't we achive this by making constructor defined in private ?
So what's the role of assignment and copy constructor in a singleton class ,how does these help out ?
if u have any sudo code that would be more clear to us.
Logged
skochan
Administrator
Hero Member
*****
Posts: 3114







Reply #1 on: June 13, 2010, 08:34:31 PM

Is this related to a particular Chapter 9 quiz question?

Cheers,

Steve Kochan
Logged
Pages: [1] Go Up
Print
Jump to:



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.