You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove virtual functions: cast argument types as necessary
For example, when List<E> extends the Collection<E> interface, its overrides of methods accepting an element,
such as add(E), are given in terms of its own E, not that of Collection. Therefore we must cast from Collection::E*
to List::E* when using that particular override.
Only typecast if the parameter types are distinct
0 commit comments