Professional Documents
Culture Documents
SYEDA.20201BCA0067 OOP Lab 11 (A)
SYEDA.20201BCA0067 OOP Lab 11 (A)
Submitted by
Name: Syeda Farheen
Roll No: 20201BCA0067
Laboratory Instructor
Mr.B. Prabhu Shankar
Procedure:
1. Define the package employee and class employeedetails class inside it.
2. Define the package student and class studentdetails inside it.
3. Create the another class and import the employee and student class details and
printinside it.
Tools Used
JDK / Eclipse/ Netbeans / notepad++ / online java compiler
package employee; public
class employeedetails
{ public void
print_emp_details()
{
System.out.println("The employee name is john");
System.out.println("The Salary is 2,00,000");
}
}
import employee.employeedetails;
import student.studentdetails;
public class printdetails
{
public static void main(String args[])
{ employeedetails emp=new
employeedetails(); studentdetails std=new
studentdetails(); emp.print_emp_details();
std.print_student_details();
}
}
OUTPUT