How a private limited company formed?

a private limited company is formed by family or friends coming together to create a business and within that other people are allowed to buy shares within their business.