Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

inheritance.java

inheritance Tutorial

Scenario:

Create a base class Employee with fields for name and salary, and a method to display details. Create derived classes Manager and Engineer, each with additional fields and overridden methods.

Task:

Create the Employee class with appropriate fields and methods.

Create derived classes Manager and Engineer with additional fields and overridden methods.

Create objects of Manager and Engineer and call their methods.

About

inheritance Tutorial

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages