Monday, March 3, 2014

Ask a simple question rookie declaration of


private SimulationView mSimulationView; This is a statement, simulationview is a gravity accelerator class, what is behind mSimulationView, abc can not be changed, such as custom? And that when you declare yourself can define a class to declare, for example:
abc private custom class declaration so? Answer two questions seeking Aunt<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Sure enough, a novice can certainly ah, whatever the definition, it is best to be meaningful
Reply:
private SimulationView mSimulationView;
private variables SimulationView scope declaration
mSimulationView is a variable name,
can customizeDude you seem to have learned even basic grammar ah, they begin to get the acceleration of gravity, and admire
Reply:
Yes ah, the landlord really speed
Reply:
The first question:
You can, mSimulationView only class member variable names, can take the name of abc, but the actual development will not be so written, class or variable names from the best to be able to comment.

Second:
You can also, for example, you write a class called MyClass
So you can declare member variables, private MyClass mMyClass;

This is the basic grammar ah! The landlord should first understand some basic java relatively good grammar practice again!

No comments:

Post a Comment