100% found this document useful (1 vote)
831 views

Day3 - Polymorphism, Abstraction: Project:Employeedetails

The document discusses three projects that demonstrate polymorphism and abstraction in Java. The first project overloads the empId() method in the Employee class to accept different data types as arguments. The second project overrides the ug() and pg() methods in the College class to specialize behavior defined by the parent University class. The third project uses multiple inheritance by implementing two interfaces, Hardware and Software, in the Desktop class to define hardware and software resources.

Uploaded by

Rani rani
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
831 views

Day3 - Polymorphism, Abstraction: Project:Employeedetails

The document discusses three projects that demonstrate polymorphism and abstraction in Java. The first project overloads the empId() method in the Employee class to accept different data types as arguments. The second project overrides the ug() and pg() methods in the College class to specialize behavior defined by the parent University class. The third project uses multiple inheritance by implementing two interfaces, Hardware and Software, in the Desktop class to define hardware and software resources.

Uploaded by

Rani rani
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Day3_Polymorphism,Abstraction

1. Project :EmployeeDetails
Package :org.emp
Class :Employee
Methods :empId()

Description
You have to overload the method empId() based on different datatype in
arguments

2. Project :UniversityInformation
Package :org.univ
Class :University
Methods :ug(),pg()

Class :College
Methods :ug(),pg()

Description:
ug(),pg() is just a templete in University class and You have to override
the method ug(),pg() in College class.
Project :Computer
Interface :HardWare
Methods :hardwareResources()

Interface :Software
Methods :softwareResources()

Class :Desktop
Methods :desktopModel()

Description:
create 2 Interface and archieve multiple inheritance.

You might also like