Working of transistor as an oscillator?

A transistor is often referred to as an oscillator because of its ability to transfer resistance. it can also switch off and on repeatedly, mimicking an oscillator.