why do we have to send the const " type " reference instead of just the types name to the constructo
Posted
by hamza
on Stack Overflow
See other posts from Stack Overflow
or by hamza
Published on 2010-05-21T01:08:55Z
Indexed on
2010/05/21
1:10 UTC
Read the original article
Hit count: 235
i m trying to make a simple program ( & yes , it is a homework ) that can generate Dates , & like most of normal people : i made my Class attributes private , i tried to send the same type that i m working on to the constructor but the complier have not accept it , i did some research & i found out that in cases like that people generously send a const "type" reference to the constructor witch meant to me that have not understand OOP well
so why do we have to send the const " type " reference instead of just the types name to the constructor ? & please give me some links or websites for beginners
PS : sorry for my English
© Stack Overflow or respective owner