java if something is extending a class is it a child of the extent 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
}