Charging by friction can happen when you rub two objects with unequal electronegativity. The object with higher electronegativity will be negatively charged and the other object with lower electronegativity will be positively charged.
Charging by induction can happen due to induced charges. The charges in a conducting object can be rearranged with the presence of an external charged object.