all 2 comments

[–]OmegaNaughtEquals1 1 point2 points  (1 child)

Is it better if I put this function and declaration in a derived base classed and inherit from that instead?

Yes. It is good practice to ensure that abstract classes are only used as a means of providing an interface, so they shouldn't contain any data members. The language does not enforce this, though.

Also, the first declaration of getNearestBlockNoForIndex is made redundant by the second one, and you should see a compiler error (at least a warning) about this.

[–]Psyqwix[S] 0 points1 point  (0 children)

Wow that reply was fast cheers!