Const (computer programming): Difference between revisions

Content deleted Content added
m updated c++ link
m Corrected spelling to "accommodate"
Line 65:
</code>
 
Often the programmer will supply both a <code>const</code> and a non-<code>const</code> method with the same name (but possibly quite different uses) in a class to accomodateaccommodate both types of callers. Consider:
 
class MyArray