Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
October 16, 2017, 08:43:12 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register Chat  
Pages: [1]   Go Down
  Print  
Author Topic: In singleton class, why we need assignment and copy constructor to be in private  (Read 9638 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:  

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 ゥ 2009 classroomM.com. All rights reserved.