title: how to create object for a class with only parameterized constructor?
body: <pre><code>public final class City
  {
  public final long id;
  
  public final String name;
  
  public final double latitude;
  
  public final double longitude;
  
  public City(long id, String name, double lat, double lng)
  {
      this.id = id;
      this.name = name;
      this.latitude = lat;
      this.longitude = lng;
  }
  
  public static City fromJsonObject(JSONObject json) throws JSONException
  {
      return new City(json.getLong(WebApi.Params.CITY_ID),
              json.getString(WebApi.Params.CITY_NAME),
              json.getDouble(WebApi.Params.LATITUDE),
              json.getDouble(WebApi.Params.LONGITUDE));
  }
  }
  </code></pre>
  
  <p>This is my class. I want to access the values of this class in my another class; how do i do that? (value of latitude, longitude, cityid and city name)</p>