Heeelllp!!! Getters and setters, public and private I need explanation | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Heeelllp!!! Getters and setters, public and private I need explanation

18th Feb 2017, 10:23 PM
Ubamadu Possible
Ubamadu Possible - avatar
4 Answers
0
you need explanation for public and private access classifiers?
19th Feb 2017, 8:45 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
yes, and also the use of 'get' and 'set' function being used within the class function
19th Feb 2017, 8:47 AM
Ubamadu Possible
Ubamadu Possible - avatar
0
get, set I dont know. if your classifier is public then you can access it from anywhere In program and if it is private then it can only be accessed in that class only. read inheritance, you will understand it clearly.
19th Feb 2017, 8:57 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar
0
@Raj YES
19th Feb 2017, 8:58 AM
Ubamadu Possible
Ubamadu Possible - avatar