Operator overloading

why i can’t write << and >> operator functions for complex class inside class itself.
why are we defining them outside class

hello @Rajan_42
we dont have access to ostream and istram class that why we are makign the overloaded function as friend