some practice to access permission for variable and method

how to declare 'private' function
how to access public and private variable or function
how to set different permission to a property