Computer Science, asked by jagjit0, 6 months ago

program In java to implement the various techniques of inheritance​

Answers

Answered by Anonymous
2

Answer:

Java Inheritance Example

class Employee{

float salary=40000;

}

class Programmer extends Employee{

int bonus=10000;

public static void main(String args[]){

Programmer p=new Programmer();

System.out.println("Programmer salary is:"+p.salary);

Similar questions