Public, Private and Protected keywords are used before function names, these keywords are shows the visibility of the function outside the class. Public functions :- a public function can be accessed everywhere, i.e. inside and outside the class. Example ...