Hello, If I have some class Basis, and derived from it Derived, inside basis I have friend function
friend int operator!=(const Basis&, const Basis&)
Inside derived class I don't have such function So my question is if I have inside my main
If( derived1 != derived2 ) ...
why does it work? i don't have any constructor for casting for != thanks in advance If I write if ( derived != basis ) will it work?