Skip to content
Discussion options

You must be logged in to vote

@heavidevi Here Patrick has made it a private variable and that's why he uses the convention of giving underscore _ before a variable name. And because it is private, he created a method to return it.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@alymurtazamemon
Comment options

@krakxn
Comment options

@alymurtazamemon
Comment options

@krakxn
Comment options

@alymurtazamemon
Comment options

Answer selected by alymurtazamemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants