Why we are returning self?

why we are returning self? and can we use diiferent name instead of Ostream?