Pract 3: Inheritance using Java | Method Overloading in Java | CompileTime Polymorphism in Java

preview_player
Показать описание
► About This Video:

This video represents the OOPL practical for SE IT Students.
With this, student will get the knowledge of how to use a Inheritance feature using java.

► Statement:-
Design and develop inheritance for a given case study, identify objects and relationships and implement inheritance wherever applicable. Employee class with Emp_name, Emp_id, Address, Mail_id, and Mobile_no as members. Inherit the classes, Programmer, Team Lead, Assistant Project Manager and Project Manager from employee class. Add Basic Pay (BP) as the member of all the inherited classes with 97% of BP as DA, 10 % of BP as HRA, 12% of BP as PF, 0.1% of BP for staff club fund. Generate pay slips for the employees with their gross and net salary.

Main Focus:
► Create parent class Publication
► Create child classes Book and Magazine
► Use the concept of method overriding
► display the total sale of publication, book and magazine.

► Frequently Asked Question:
1. Justify inheritance/ class relationship with classes Surgeon and Doctor.
2. Explain why multiple inheritance is not supported by Java.
3. Compare Composition and Inheritance in OOP.

► Steps :
1. Start
2. Create the class Employee with name, Empid, address, mailid, mobileno as data members.
3. Inherit the classes Programmer, Team Lead, Assistant Project Manager and Project Manager from employee class.
4. Add Basic Pay (BP) as the member of all the inherited classes.
5. Calculate DA as 97% of BP, HRA as 10% of BP, PF as 12% of BP, Staff club fund as 0.1% of BP.
6. Calculate gross salary and net salary.
7. Generate payslip for all categories of employees.
8. Create the objects for the inherited classes and invoke the necessary methods to display the Payslip
9. Stop

► Input:
Empid, address, mailid, mobileno, Basic Pay (BP)

► Output:
Gross and Net salary slip

Please Subscribe the channel for more technical Videos.

► Angular Complete Course for Beginners

► Theory of Computation Course

► DBMS PL/SQL Commands

► TE IT WAD Assignments

► SE IT OOP Assignments

#inheritance
#methodoverloading
#earlybinding
#staticpolymorhism
#compiletimetimebinding
Рекомендации по теме
visit shbcf.ru