Last active
          April 29, 2016 18:21 
        
      - 
      
- 
        Save easierbycode/407aade4a8287442faca0253138ad1b8 to your computer and use it in GitHub Desktop. 
    calling super.methodName from subclass
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class Project { | |
| getTaskCount() { | |
| return 50; | |
| } | |
| } | |
| class SoftwareProject extends Project { | |
| getTaskCount() { | |
| return super.getTaskCount() + 25; | |
| } | |
| } | |
| let sp = new SoftwareProject(); | |
| sp.getTaskCount() | |
| // 75 | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment