Computer Science, asked by sumit75762766f, 8 months ago

write a Java program to implement scenario explained in class using inheritance​

Answers

Answered by manish36263
0

Answer:

plz mark me as BRAINLIST plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

Answered by AmishaPraharaj
0

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