private and public are the modifier which specify the scope of the members of the class. if the member data is decleared with public, then all instance can access it no matter what package it is in. if it is the private, it can only be accessed in the same package. the dafult is private.
return means the method ended and the value after return can be gotten by the method called. such as if you call 
double returnVal = A.volum(). then the value of returnVal is the same as v. that mean we assign the value of v to returnVal.

解决方案 »

  1.   

    1private只能在类里用public任何东西都可以用它。
    2返回一个值
      

  2.   

    sorry, type wrong words. the private only be accessed in the same class and default is protected which can be accessed in the same package.
      

  3.   

    private只能在当前类中被访问,public可以被所有的类访问;
    return代表这个方法运行后所返回的值
      

  4.   

    public类可以在另外的包中访问,private类只能在同一个类中被访问。