Added virtual/override specifications to classes.