How to make an Electric Fence

Can i have a sample sir or a tutorial with the on/off ?

I am still learning.

Thank you