program In java to implement the various techniques of inheritance
Answers
Answered by
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
Math,
3 months ago
Math,
3 months ago
Political Science,
6 months ago
English,
11 months ago
Chemistry,
11 months ago