InterviewSolution
Saved Bookmarks
| 1. |
Program In java to implement the various techniques of inheritance |
|
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); |
|