正在加载图片...
Static Class Member -Data Members u Another example: the fibonacci number sequence class The sequence is fixed, so every object of the class maintain a copy is needless Every instance uses only a range of elements in the sequence, related status information are Beginning position -start point in the original sequence ength - range size of current object Next Element- current position How to define the class?Static Class Member – Data Members ◼ Another example: the fibonacci number sequence class ◼ The sequence is fixed, so every object of the class maintain a copy is needless ◼ Every instance uses only a range of elements in the sequence, related status information are: Beginning position – start point in the original sequence Length – range size of current object Next Element – current position ◼ How to define the class?
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有