This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Sauravbasyalking12
wrote ...
2021/2/16
Greenfoot
Sauravbasyalking12
2021/2/16
#
explain the preferred access modifier used for both variables and methods
danpost
2021/2/17
#
Sauravbasyalking12 wrote...
explain the preferred access modifier used for both variables and methods
It varies on usage. For example,
get
ter and
set
ter methods are generally
public
and the fields they deal with are
private
.
You need to login to post a reply.
X