Concept of GIS Support Interface: Encapsulation, Inheritance, Polymorphism (Especially for GATE-Geospatial 2022)

Get top class preparation for CTET/Paper-1 right from your home: get questions, notes, tests, video lectures and more- for all subjects of CTET/Paper-1.

Examrace Books on Mapping, GIS, and Remote Sensing prepares you throughly for a wide range of practical applications.

There are three basic principles underlying the concept of interface:

This Diagram Shows Three Concept of Interface

1. Encapsulation

Encapsulation is the mechanism used to hide properties and methods of an object so the object can only be accessed through predefined interfaces.

In object-based programming, information hiding reduces software development risk.

2. Inheritance

Inheritance means an object inherits properties and methods from the class to which the object belongs.

A subclass also inherits the class properties and methods

For example: residential area is a superclass while low-density and high-density residential areas are subclasses.

3. Polymorphism

Polymorphism means the same method can produce different effects, depending on the kind of object to which the method is being applied.

  • For example, if AddLayer is a method for adding data to a view, it can be set to add a coverage given a coverage data source or a shapefile if given a shapefile data source.
  • Like inheritance polymorphism save repeating same methods for different classes.
  • In ArcGIS, both ArcCatalog and ArcMap have embedded Visual Basic Editor, which runs macros using ArcObjects (the interface) . Using the macros, you can create customized commands, menus, and tools. Most ArcGIS users, however, do not have to deal with ArcObjects!

Developed by: