Among those who took oath were 16 federal ministers, including Ishaq Dar, who is tipped to become the Finance Minister, and nine ministers of state.
They were administered the oath of office by President Asif Ali Zardari, two days after Mr Sharif was sworn in after being formally elected the Prime Minister by the National Assembly or lower house of parliament.
A majority of the new ministers are from Sharif's PML-N party, which swept the May 11 general elections.
One member each from the PML-F and National People's Party was included in the cabinet.
The NPP has already announced its merger with the PML-N.
Most of the new ministers are from Punjab, the traditional stronghold of the PML-N.
There were 19 ministers from the country's largest province, three from Sindh, two from Balochistan and one from Khyber-Pakhtunkhwa.
Only two women — Anusha Rehman and Saira Afzal Tarar — were included as ministers of state.
Besides Dar, the other federal ministers are Chaudhry Nisar Ali Khan, Khwaja Asif, Ahsan Iqbal, Zahid Hamid, Shahid Khaqan Abbasi, Lt Gen (retd) Abdul Qadir Baloch, Pervaiz Rashid, Rana Tanvir Hussain, Khwaja Saad Rafique, Sikander Bosan, Chaudhry Muhammad Barjis Tahir, Ghulam Murtaza Jatoi, Pir Sadruddin Shah Rashidi, Sardar Mohammad Yousuf and Kamran Michael.
The ministers of state are Mian Waliur Rehman, Usman Ibrahim, Sheikh Aftab Ahmed, Khurram Dastagir Khan, Anusha Rehman, Saira Afzal Tarar, Pir Aminul Hasnat, Jam Mir Kamal and Abdul Hakim Baloch.
The portfolios of the ministers were not officially announced though sources said Mr Dar, whose son is married to Mr Sharif's daughter, would be the Finance Minister.
From Our Network
- Two top Hizbul militants killed in J&K encounter
- Dalit woman was brutally raped and tortured, confirms post-mortem report
- Here's how Indian Railway coaches will look in future (see pics)
- Kerala Principal furious after students prepare ‘grave’, sprinkle it with flowers as 'retirement gift'
- Punjab: All women above 40 will be examined for breast cancer
- Salman on Eid and Ajay, Hrithik on R-Day: Is SRK caught between devil and deep sea?
- Is this the actual reason behind Sushant Singh Rajput and Ankita Lokhande’s break-up?
- Kangana-Hrithik & Salman’s ambassadorship: Sanjay Dutt speaks on burning controversies
- KRK has something to say about Karan Singh Grover’s third marriage with Bipasha Basu
- IPL: 8 hottest female anchors