Hot answers tagged

6 votes
Accepted

Analogy for static objects (or members)

Static members belong to the type, not the instance Static members are best seen as belonging to the type rather than the instance. If you're inside a class, it can be harder to see: ...
  • 897
6 votes

Analogy for static objects (or members)

I use school colors and principal's name. If someone comes in tomorrow and says your principal is no longer Mr. Smith, it's now Ms. Jones then that change is made for every object (student) in the ...
  • 3,029
5 votes

Analogy for static objects (or members)

One way to approach this might be to have students identify what they all have in common and what they each possess individually. That which is common -- like the school they are attending or the ...
  • 9,092
3 votes
Accepted

Should Java Static space and Memory Model be a part of AP CS

Static is within the AP subset and is fair game for the examination. Oddly enough, the memory model of Java that operates here is not, so students could, ...
  • 32.2k
3 votes

Analogy for static objects (or members)

An example of static, "preferably something that high-school students can relate to and understand", would be the instructor. Each period for the ...
2 votes

Classification of programming exercises

Another classification criterium would around the type of exercise. Some exercises are 'here is a problem, write a piece of code to solve it' or 'design a (piece of a) software system'. Others are '...
2 votes

Classification of programming exercises

In one sense this is hopeless as you probably can't come up with a classification that everyone would agree with. On the other hand, it is certainly possible for you to come up with a classification ...
  • 35.5k
2 votes

Should Java Static space and Memory Model be a part of AP CS

If one understands objects, fields, and variables, static fields should be easy to understand (e.g. as fields of a "class object"). And if one does not understand objects, one can not apply OOP or ...
  • 200
1 vote

Analogy for static objects (or members)

Here's an answer that will not make you happy. If you need an analogy, maybe the concept is too complex to be taught? The literature on CS education does not show a lot of support for analogical ...

Only top scored, non community-wiki answers of a minimum length are eligible