how tcan we use class to setfunctipon after extends in java 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
}