java < extends code example
Example: java how to extend a class
class A{
//some code
}
class B extends A{ //keyword used is extends
//some code
}
class A{
//some code
}
class B extends A{ //keyword used is extends
//some code
}