Check out example codes for "java how to extend a class". It will help you in understanding the concepts better.

Code Example 1

class A{
  //some code
}
class B extends A{ //keyword used is extends
  //some code
}

Learn ReactJs, React Native from akashmittal.com