extend a class with another class c 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
}