Can someone please explain what both of these mean and the good details about them. Please also explain the parameters of how to use it.
COKEDUDE
27
Junior Poster in Training
Recommended Answers
Jump to PostHello.
Adding the private modifier to a method means that you can ONLY call it from within that class.
The public modifier means that you can access that method with the dot (.) operator from other classes.public class Foo{ public Foo{ doSomethingInternal(); // Legal (This is …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.