What exactly is a "Member Field"?

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

What exactly is a "Member Field"?

Postby clumsy » Sun Jun 15, 2008 9:34 pm

Hello there,

I'm new to Android and worked me through the Google-Tutorials (Notepad v1-v3).
There is mentioned a so called "member field". Member-field-variables are declared like mCursor, mText etc.
What characterises a member field?

Thank you :)
clumsy
clumsy
Freshman
Freshman
 
Posts: 3
Joined: Sun Jun 15, 2008 9:28 pm

Top

Postby plusminus » Sun Jun 15, 2008 9:56 pm

Hello clumsy,

(without having a look at the actual code)
"Member-field" is just an other naming for "class-attribute", its nothing special :).
The "m" emphasizes this property.

Some people put a "p" in front of each Parameter, for a similar reason.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to General

Who is online

Users browsing this forum: No registered users and 2 guests