Science Addiction

a lot of geek.

google
yahoo
bing

Archive for the ‘programming’ tag

Between Protected and Private

without comments

Ruby has a closely related keyword called protected that differs subtly from private. As far as I can tell, the only reason to learn the difference is so that you can ace a job interview that asks you “In Ruby, what is the difference between private and protected?” But do you really want to work at a company that asks you such a lame interview question?

Michael Hartl.

Written by Devanshu

January 7th, 2011 at 1:58 pm

Posted in Miscellany

Tagged with