What is the difference between private and public functions ?

  1. Public functions are free, you have to buy private ones

  2. Public functions are the only ones you can download

  3. Public functions can be used by anyone, private can only be used by other code in the class you are writing

  4. Public functions can’t be used


Correct Option: C

Find more quizzes: