Position
Coords: the coordinates in the position classTimestamp: The time when the location was traced
The Coordinates class varies on browser support
Reference:
Head First HTML5 Programming by Eric Freeman & Elisabeth Robson.
Encapsulation | Objects keep track of its state internally. Objects have characteristics that should not interact with other objects |
---|---|
Inheritance | Objects can get characteristics from other objects and interfaces. An objects characteristics can be passed down to other objects similar to the class |
Polymorphisim | Object can have many forms to take for different situations |
Abstraction | Putting classes in a general to most specific hierarchy. Some characteristics are hidden and do not need to be changed but it can still they can still be modified. Group objects base on what they can do |