Explaining NULL and Empty to your 6-year old?

Posted by Atomiton on Stack Overflow See other posts from Stack Overflow or by Atomiton
Published on 2010-04-22T20:24:11Z Indexed on 2010/04/22 20:33 UTC
Read the original article Hit count: 280

Filed under:
|
|

I'm thinking in terms of Objects here. I think it's important to simplify ideas. If you can explain this to a 6-year old, you can teach new programmers the difference.

I'm thinking that a cookie object would be apropos:

public class Cookie {
  public string flavor {get; set; }
  public int numberOfCrumbs { get; set; }
}

© Stack Overflow or respective owner

Related posts about teaching

Related posts about null