extends Keyword (JNNC Technologies)



extends is the keyword used to inherit the properties of a class. Following is the syntax of extends keyword.
Syntax
class Super {
   .....
   .....
}
class Sub extends Super {
   .....
   .....
}

Post a Comment

0 Comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();