Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Build a Simple Android App Basic Android Programming Accessing Views in Code: Declaring Variables

Declan Smith
Declan Smith
453 Points

What exactly is the use of 'm' in mFact and mButton?

New to coding and I'm not fully grasping the use of the 'm' of the use of 'private' when writing this script.

1 Answer

Fahad Mutair
Fahad Mutair
10,359 Points

hi Declan Smith , its android style of coding we use m prefix for member variable or member field

Follow Field Naming Conventions

Non-public, non-static field names start with m.

you can read more in this link