简体   繁体   中英

Creating subclass of a class in java

edited version. I think my question was not clear. So, i have made some changes. I have a package named "module 6". Under module 6, there are two separate classes named "EarthquakeCityMap" and "CommonMarker". Inside the EarthquakeCityMap Class there are declaration for List, Strings. For eg:

 public class EarthquakeCityMap {

private UnfoldingMap map;

private List<Marker> cityMarkers;
private List<Marker> quakeMarkers;
private List<Marker> countryMarkers;
private CommonMarker lastSelected;


   }

I understand the declaration "List" but could not understand "private CommonMarker lastSelected"

I do not want to give you trouble. But if you could not understand this, here is the link for the entire source code https://github.com/areszhao/UnfoldingMaps/tree/master/src/module6

Thank you

这意味着,一个EarthquakeCityMap有一个CommonMarker称为lastSelected,并且访问lastSelected对象被限制为内EarthquakeCityMap类。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM