• Matt Clements


Metaprogramming is the ability to write code that operates on other code, rather than data. In all previous chapters we have written code that operates on other data, such as the reading/writing of variables, outputting to screen, communicating with files or other input output streams. Metaprogramming is the ability to write code that adjusts the functionality of a class or dynamically call a method without a direct call to this method existing within the executable code. This is extremely useful when you want to amend the method being called depending on a scenario, or if you want to modify the behavior of a class during the runtime.


Regular Expression Method Call Split Method Previous Chapter Class String 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Matt Clements 2014

Authors and Affiliations

  • Matt Clements
    • 1
  1. 1.BucksUK

Personalised recommendations