title: Constructor not visible
body: <p>I am developing an Android application which makes use of the <a href="http://developer.android.com/reference/android/net/wifi/ScanResult.html" rel="nofollow"><code>ScanResult</code></a> object. This object is in the form of:</p>
  
  <pre><code>[SSID: __mynetwork__, BSSID: 00:0e:2e:ae:4e:85, capabilities: [WPA-PSK-TKIP][ESS], level: -69, frequency: 2457, timestamp: 117455824743]
  </code></pre>
  
  <p>I am trying to override the <code>equals()</code> method of this class by creating my own class which extends <code>ScanResult</code>:</p>
  
  <pre><code>public class MyScanResult extends ScanResult {
  
      public MyScanResult() {
          super();
      }
  
      @Override
      public boolean equals(Object o) {
          if (this == o)
              return true;
          if (!(o instanceof ScanResult))
              return false;
  
          ScanResult obj = (ScanResult) obj;
          if (!BSSID.equals(obj.BSSID))
              return false;
          if (!SSID.equals(obj.SSID))
              return false;
          if (!capabilities.equals(obj.capabilities))
              return false;
          if (frequency != obj.frequency)
              return false;
          if (level != obj.level)
              return false;
  
          return true;
      }
  
  }
  </code></pre>
  
  <p>However when I try this, I get the following error: <code>The constructor ScanResult() is not visible</code>. How can I solve this please?</p>