informasi karyawan

parents
<?php
/*
Romauli Feronica Siregar
*/
class Company{
public $name;
function getCompanyName() {
return $this->name="<br>Company : Institut Teknologi Del";
}
function setCompanyName($name) {
$this->name = $name;
}
}
<?php
/*
Romauli Feronica Siregar
*/
class Department{
public $name;
function getDepartmentName() {
return $this->name="Departement: Quality Assurance";
}
function setDepartmentName($name) {
$this->name = $name;
}
}
<?php
/*
Romauli Feronica Siregar
*/
class Employee{
public $name;
public $title;
public $salary;
function setEmployeeName($name) {
$this->name = $name;
}
function getEmployeeTitle() {
return $this->title="Manajer";
}
function getEmployeeMontlySalary() {
return $this->salary= "10.000.000";
}
function getProfileEmployee()
{
echo "Nama:".$this->name.
"<br>Jabatan:".$this->title.
"<br>Gaji Perbulan:".$this->salary;
}
}
<?php
/*
Romauli Feronica Siregar
*/
class Company{
public $name;
function getCompanyName() {
return $this->name="<br>Company : Institut Teknologi Del";
}
function setCompanyName($name) {
$this->name = $name;
}
}
<?php
/*
Romauli Feronica Siregar
*/
class Department{
public $name;
function getDepartmentName() {
return $this->name="Departement: Quality Assurance";
}
function setDepartmentName($name) {
$this->name = $name;
}
}
<?php
/*
Romauli Feronica Siregar
*/
class Employee{
public $name;
public $title;
public $salary;
function setEmployeeName($name) {
$this->name = $name;
}
function getEmployeeTitle() {
return $this->title="Manajer";
}
function getEmployeeMontlySalary() {
return $this->salary= "10.000.000";
}
function getProfileEmployee()
{
echo "Nama:".$this->name.
"<br>Jabatan:".$this->title.
"<br>Gaji Perbulan:".$this->salary;
}
}
<?php
/*
Romauli Feronica Siregar
*/
require_once 'Employee.php';
require_once 'Department.php';
require_once 'Company.php';
$emp1= new Employee();
echo "DATA KARYAWAN:";
$emp1->setEmployeeName("roma");
echo '';
$emp1->getEmployeeTitle();
echo '<br>';
$emp1->getEmployeeMontlySalary();
echo '<br>';
$emp1->getProfileEmployee();
echo '<br>';
$emp2= new Department();
echo $emp2->getDepartmentName();
$emp3= new Company();
echo $emp3->getCompanyName();
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
// put your code here
?>
</body>
</html>
auxiliary.org-netbeans-modules-php-editor.fluent_2e_setter_2e_project_2e_property=false
auxiliary.org-netbeans-modules-php-editor.getter_2e_setter_2e_method_2e_name_2e_generation=AS_JAVA
auxiliary.org-netbeans-modules-php-editor.public_2e_modifier_2e_project_2e_property=false
copy.src.files=false
copy.src.on.open=false
copy.src.target=C:\\xampp\\htdocs\\PhpProject1
index.file=index.php
run.as=LOCAL
url=http://localhost/Informasi_karyawan/
include.path=${php.global.include.path}
php.version=PHP_70
source.encoding=UTF-8
src.dir=.
tags.asp=false
tags.short=false
web.root=.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>Informasi_karyawan</name>
</data>
</configuration>
</project>
<?php
/*
Romauli Feronica Siregar
*/
require_once 'Employee.php';
require_once 'Department.php';
require_once 'Company.php';
$emp1= new Employee();
echo "DATA KARYAWAN:";
$emp1->setEmployeeName("roma");
echo '';
$emp1->getEmployeeTitle();
echo '<br>';
$emp1->getEmployeeMontlySalary();
echo '<br>';
$emp1->getProfileEmployee();
echo '<br>';
$emp2= new Department();
echo $emp2->getDepartmentName();
$emp3= new Company();
echo $emp3->getCompanyName();
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<?php
// put your code here
?>
</body>
</html>
auxiliary.org-netbeans-modules-php-editor.fluent_2e_setter_2e_project_2e_property=false
auxiliary.org-netbeans-modules-php-editor.getter_2e_setter_2e_method_2e_name_2e_generation=AS_JAVA
auxiliary.org-netbeans-modules-php-editor.public_2e_modifier_2e_project_2e_property=false
copy.src.files=false
copy.src.on.open=false
copy.src.target=C:\\xampp\\htdocs\\PhpProject1
index.file=index.php
run.as=LOCAL
url=http://localhost/Informasi_karyawan/
include.path=${php.global.include.path}
php.version=PHP_70
source.encoding=UTF-8
src.dir=.
tags.asp=false
tags.short=false
web.root=.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.php.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/php-project/1">
<name>Informasi_karyawan</name>
</data>
</configuration>
</project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment