-
09-24-2013, 07:00 AM #21Junior Member
- Ngày tham gia
- Jan 2015
- Bài viết
- 0
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
package abc[/color][color=#007700]; [/color][color=#0000bb]import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].*;class [/color][color=#0000bb]nhansu [/color][color=#007700]{ private [/color][color=#0000bb]string hoten[/color][color=#007700]; private [/color][color=#0000bb]int namsinh[/color][color=#007700]; private [/color][color=#0000bb]string mathe[/color][color=#007700]; public [/color][color=#0000bb]string gethoten[/color][color=#007700](){ return [/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]void sethoten[/color][color=#007700]([/color][color=#0000bb]string hoten[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]hoten [/color][color=#007700]= [/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]int getnamsinh[/color][color=#007700](){ return [/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]void setnamsinh[/color][color=#007700]([/color][color=#0000bb]int namsinh[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]namsinh [/color][color=#007700]= [/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]string getmathe[/color][color=#007700]() { return [/color][color=#0000bb]mathe[/color][color=#007700]; } public [/color][color=#0000bb]void setmathe[/color][color=#007700]([/color][color=#0000bb]string mathe[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]mathe [/color][color=#007700]= [/color][color=#0000bb]mathe[/color][color=#007700]; } public [/color][color=#0000bb]void nhap[/color][color=#007700](){ [/color][color=#0000bb]scanner nhapdulieu [/color][color=#007700]= new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap ten "[/color][color=#007700]); [/color][color=#0000bb]sethoten[/color][color=#007700]([/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap nam sinh "[/color][color=#007700]); [/color][color=#0000bb]setnamsinh[/color][color=#007700]([/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700]()); [/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700](); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap ma the "[/color][color=#007700]); [/color][color=#0000bb]setmathe[/color][color=#007700]([/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]()); } public [/color][color=#0000bb]void xuat[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho ten : "[/color][color=#007700]+[/color][color=#0000bb]gethoten[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nam sinh : "[/color][color=#007700]+[/color][color=#0000bb]getnamsinh[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ma the : "[/color][color=#007700]+[/color][color=#0000bb]getmathe[/color][color=#007700]()); }} class [/color][color=#0000bb]giangvien [/color][color=#007700]extends [/color][color=#0000bb]nhansu [/color][color=#007700]{ private [/color][color=#0000bb]float luong[/color][color=#007700]; public [/color][color=#0000bb]float getluong[/color][color=#007700](){ return [/color][color=#0000bb]luong[/color][color=#007700]; } public [/color][color=#0000bb]void setluong[/color][color=#007700]([/color][color=#0000bb]float luong[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]luong [/color][color=#007700]= [/color][color=#0000bb]luong[/color][color=#007700]; } public [/color][color=#0000bb]void nhapgv[/color][color=#007700](){ [/color][color=#0000bb]scanner nhapdulieu [/color][color=#007700]= new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap tien luong hang thang "[/color][color=#007700]); [/color][color=#0000bb]setluong[/color][color=#007700]([/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700]()); } public [/color][color=#0000bb]void xuatgv[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"tien luong thang : "[/color][color=#007700]+[/color][color=#0000bb]luong[/color][color=#007700]); }} class [/color][color=#0000bb]giamdoc [/color][color=#007700]extends [/color][color=#0000bb]nhansu [/color][color=#007700]{ private [/color][color=#0000bb]float tientieu[/color][color=#007700]; public [/color][color=#0000bb]float gettientieu[/color][color=#007700](){ return [/color][color=#0000bb]tientieu[/color][color=#007700]; } public [/color][color=#0000bb]void settientieu[/color][color=#007700]([/color][color=#0000bb]float tientieu[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tientieu [/color][color=#007700]= [/color][color=#0000bb]tientieu[/color][color=#007700]; } public [/color][color=#0000bb]void nhapgd[/color][color=#007700](){ [/color][color=#0000bb]scanner nhapdulieu [/color][color=#007700]= new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].print([/color][color=#dd0000]"nhap tien tieu hang thang "[/color][color=#007700]); [/color][color=#0000bb]settientieu[/color][color=#007700]([/color][color=#0000bb]nhapdulieu[/color][color=#007700].[/color][color=#0000bb]nextfloat[/color][color=#007700]()); } public [/color][color=#0000bb]void xuatgd[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"tien tieu hang thang : "[/color][color=#007700]+[/color][color=#0000bb]tientieu[/color][color=#007700]); }} public class [/color][color=#0000bb]baitap [/color][color=#007700]{ public static [/color][color=#0000bb]void main[/color][color=#007700]([/color][color=#0000bb]string[/color][color=#007700][] [/color][color=#0000bb]args[/color][color=#007700]) { [/color][color=#0000bb]giangvien gv [/color][color=#007700]= new [/color][color=#0000bb]giangvien[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]nhap[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]nhapgv[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]xuat[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]xuatgv[/color][color=#007700](); }} [/color]
</div>
</div>
-
12-26-2013, 07:00 AM #22Junior Member
- Ngày tham gia
- Feb 2015
- Bài viết
- 0
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
package connguoi[/color][color=#007700]; [/color][color=#0000bb]import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].[/color][color=#0000bb]scanner[/color][color=#007700]; public class [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]string hoten[/color][color=#007700]; private [/color][color=#0000bb]int namsinh[/color][color=#007700]; private [/color][color=#0000bb]double mathe[/color][color=#007700]; public [/color][color=#0000bb]void sethoten[/color][color=#007700]([/color][color=#0000bb]string hoten[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]hoten[/color][color=#007700]=[/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]string gethoten[/color][color=#007700](){ return [/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]void setnamsinh[/color][color=#007700]([/color][color=#0000bb]int namsinh[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]namsinh[/color][color=#007700]=[/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]int getnamsinh[/color][color=#007700](){ return [/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]void setmathe[/color][color=#007700]([/color][color=#0000bb]double mathe[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]mathe[/color][color=#007700]=[/color][color=#0000bb]mathe[/color][color=#007700]; } public [/color][color=#0000bb]double getmathe[/color][color=#007700](){ return [/color][color=#0000bb]mathe[/color][color=#007700]; } } class [/color][color=#0000bb]sinhvien [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tienno[/color][color=#007700]; public [/color][color=#0000bb]void settienno[/color][color=#007700]([/color][color=#0000bb]double tienno[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tienno[/color][color=#007700]=[/color][color=#0000bb]tienno[/color][color=#007700]; } public [/color][color=#0000bb]double gettienno[/color][color=#007700](){ return [/color][color=#0000bb]tienno[/color][color=#007700]; }} class [/color][color=#0000bb]giangvien [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tienluong[/color][color=#007700]; public [/color][color=#0000bb]void settienluong[/color][color=#007700]([/color][color=#0000bb]double tienluong[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tienluong[/color][color=#007700]=[/color][color=#0000bb]tienluong[/color][color=#007700]; } public [/color][color=#0000bb]double gettienluong[/color][color=#007700](){ return [/color][color=#0000bb]tienluong[/color][color=#007700]; } public [/color][color=#0000bb]void input[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap thong tin cua giang vien"[/color][color=#007700]); [/color][color=#0000bb]scanner nhap[/color][color=#007700]=new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho va ten"[/color][color=#007700]); [/color][color=#0000bb]sethoten[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nam sinh"[/color][color=#007700]); [/color][color=#0000bb]setnamsinh[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ma the"[/color][color=#007700]); [/color][color=#0000bb]setmathe[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextdouble[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"tien luong hang thang"[/color][color=#007700]); [/color][color=#0000bb]settienluong[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextdouble[/color][color=#007700]()); } public [/color][color=#0000bb]void output[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"thong tin cua giang vien"[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho va ten: "[/color][color=#007700]+[/color][color=#0000bb]gethoten[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"nam sinh: "[/color][color=#007700]+[/color][color=#0000bb]getnamsinh[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"ma the: "[/color][color=#007700]+[/color][color=#0000bb]getmathe[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"tien luong hang thang: "[/color][color=#007700]+[/color][color=#0000bb]gettienluong[/color][color=#007700]()); }} class [/color][color=#0000bb]giamdoc [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tientieu[/color][color=#007700]; public [/color][color=#0000bb]void settientieu[/color][color=#007700]([/color][color=#0000bb]double tientieu[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tientieu[/color][color=#007700]=[/color][color=#0000bb]tientieu[/color][color=#007700]; } public [/color][color=#0000bb]double gettientieu[/color][color=#007700](){ return [/color][color=#0000bb]tientieu[/color][color=#007700]; }} class [/color][color=#0000bb]test[/color][color=#007700]{ public static [/color][color=#0000bb]void main[/color][color=#007700]([/color][color=#0000bb]string [/color][color=#007700][][/color][color=#0000bb]args[/color][color=#007700]){ [/color][color=#0000bb]giangvien gv[/color][color=#007700]=new [/color][color=#0000bb]giangvien[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]input[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]output[/color][color=#007700](); } } [/color]
</div>
</div>
-
12-26-2013, 07:00 AM #23Junior Member
- Ngày tham gia
- Feb 2015
- Bài viết
- 0
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
package connguoi[/color][color=#007700]; [/color][color=#0000bb]import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].[/color][color=#0000bb]scanner[/color][color=#007700]; public class [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]string hoten[/color][color=#007700]; private [/color][color=#0000bb]int namsinh[/color][color=#007700]; private [/color][color=#0000bb]double mathe[/color][color=#007700]; public [/color][color=#0000bb]void sethoten[/color][color=#007700]([/color][color=#0000bb]string hoten[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]hoten[/color][color=#007700]=[/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]string gethoten[/color][color=#007700](){ return [/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]void setnamsinh[/color][color=#007700]([/color][color=#0000bb]int namsinh[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]namsinh[/color][color=#007700]=[/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]int getnamsinh[/color][color=#007700](){ return [/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]void setmathe[/color][color=#007700]([/color][color=#0000bb]double mathe[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]mathe[/color][color=#007700]=[/color][color=#0000bb]mathe[/color][color=#007700]; } public [/color][color=#0000bb]double getmathe[/color][color=#007700](){ return [/color][color=#0000bb]mathe[/color][color=#007700]; } } class [/color][color=#0000bb]sinhvien [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tienno[/color][color=#007700]; public [/color][color=#0000bb]void settienno[/color][color=#007700]([/color][color=#0000bb]double tienno[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tienno[/color][color=#007700]=[/color][color=#0000bb]tienno[/color][color=#007700]; } public [/color][color=#0000bb]double gettienno[/color][color=#007700](){ return [/color][color=#0000bb]tienno[/color][color=#007700]; }} class [/color][color=#0000bb]giangvien [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tienluong[/color][color=#007700]; public [/color][color=#0000bb]void settienluong[/color][color=#007700]([/color][color=#0000bb]double tienluong[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tienluong[/color][color=#007700]=[/color][color=#0000bb]tienluong[/color][color=#007700]; } public [/color][color=#0000bb]double gettienluong[/color][color=#007700](){ return [/color][color=#0000bb]tienluong[/color][color=#007700]; } public [/color][color=#0000bb]void input[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap thong tin cua giang vien"[/color][color=#007700]); [/color][color=#0000bb]scanner nhap[/color][color=#007700]=new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho va ten"[/color][color=#007700]); [/color][color=#0000bb]sethoten[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nam sinh"[/color][color=#007700]); [/color][color=#0000bb]setnamsinh[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ma the"[/color][color=#007700]); [/color][color=#0000bb]setmathe[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextdouble[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"tien luong hang thang"[/color][color=#007700]); [/color][color=#0000bb]settienluong[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextdouble[/color][color=#007700]()); } public [/color][color=#0000bb]void output[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"thong tin cua giang vien"[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho va ten: "[/color][color=#007700]+[/color][color=#0000bb]gethoten[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"nam sinh: "[/color][color=#007700]+[/color][color=#0000bb]getnamsinh[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"ma the: "[/color][color=#007700]+[/color][color=#0000bb]getmathe[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"tien luong hang thang: "[/color][color=#007700]+[/color][color=#0000bb]gettienluong[/color][color=#007700]()); }} class [/color][color=#0000bb]giamdoc [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tientieu[/color][color=#007700]; public [/color][color=#0000bb]void settientieu[/color][color=#007700]([/color][color=#0000bb]double tientieu[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tientieu[/color][color=#007700]=[/color][color=#0000bb]tientieu[/color][color=#007700]; } public [/color][color=#0000bb]double gettientieu[/color][color=#007700](){ return [/color][color=#0000bb]tientieu[/color][color=#007700]; }} class [/color][color=#0000bb]test[/color][color=#007700]{ public static [/color][color=#0000bb]void main[/color][color=#007700]([/color][color=#0000bb]string [/color][color=#007700][][/color][color=#0000bb]args[/color][color=#007700]){ [/color][color=#0000bb]giangvien gv[/color][color=#007700]=new [/color][color=#0000bb]giangvien[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]input[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]output[/color][color=#007700](); } } [/color]
</div>
</div>
-
12-26-2013, 07:00 AM #24Junior Member
- Ngày tham gia
- Jul 2015
- Bài viết
- 0
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
package connguoi[/color][color=#007700]; [/color][color=#0000bb]import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].[/color][color=#0000bb]scanner[/color][color=#007700]; public class [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]string hoten[/color][color=#007700]; private [/color][color=#0000bb]int namsinh[/color][color=#007700]; private [/color][color=#0000bb]double mathe[/color][color=#007700]; public [/color][color=#0000bb]void sethoten[/color][color=#007700]([/color][color=#0000bb]string hoten[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]hoten[/color][color=#007700]=[/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]string gethoten[/color][color=#007700](){ return [/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]void setnamsinh[/color][color=#007700]([/color][color=#0000bb]int namsinh[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]namsinh[/color][color=#007700]=[/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]int getnamsinh[/color][color=#007700](){ return [/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]void setmathe[/color][color=#007700]([/color][color=#0000bb]double mathe[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]mathe[/color][color=#007700]=[/color][color=#0000bb]mathe[/color][color=#007700]; } public [/color][color=#0000bb]double getmathe[/color][color=#007700](){ return [/color][color=#0000bb]mathe[/color][color=#007700]; } } class [/color][color=#0000bb]sinhvien [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tienno[/color][color=#007700]; public [/color][color=#0000bb]void settienno[/color][color=#007700]([/color][color=#0000bb]double tienno[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tienno[/color][color=#007700]=[/color][color=#0000bb]tienno[/color][color=#007700]; } public [/color][color=#0000bb]double gettienno[/color][color=#007700](){ return [/color][color=#0000bb]tienno[/color][color=#007700]; }} class [/color][color=#0000bb]giangvien [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tienluong[/color][color=#007700]; public [/color][color=#0000bb]void settienluong[/color][color=#007700]([/color][color=#0000bb]double tienluong[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tienluong[/color][color=#007700]=[/color][color=#0000bb]tienluong[/color][color=#007700]; } public [/color][color=#0000bb]double gettienluong[/color][color=#007700](){ return [/color][color=#0000bb]tienluong[/color][color=#007700]; } public [/color][color=#0000bb]void input[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap thong tin cua giang vien"[/color][color=#007700]); [/color][color=#0000bb]scanner nhap[/color][color=#007700]=new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho va ten"[/color][color=#007700]); [/color][color=#0000bb]sethoten[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nam sinh"[/color][color=#007700]); [/color][color=#0000bb]setnamsinh[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ma the"[/color][color=#007700]); [/color][color=#0000bb]setmathe[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextdouble[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"tien luong hang thang"[/color][color=#007700]); [/color][color=#0000bb]settienluong[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextdouble[/color][color=#007700]()); } public [/color][color=#0000bb]void output[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"thong tin cua giang vien"[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho va ten: "[/color][color=#007700]+[/color][color=#0000bb]gethoten[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"nam sinh: "[/color][color=#007700]+[/color][color=#0000bb]getnamsinh[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"ma the: "[/color][color=#007700]+[/color][color=#0000bb]getmathe[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"tien luong hang thang: "[/color][color=#007700]+[/color][color=#0000bb]gettienluong[/color][color=#007700]()); }} class [/color][color=#0000bb]giamdoc [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tientieu[/color][color=#007700]; public [/color][color=#0000bb]void settientieu[/color][color=#007700]([/color][color=#0000bb]double tientieu[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tientieu[/color][color=#007700]=[/color][color=#0000bb]tientieu[/color][color=#007700]; } public [/color][color=#0000bb]double gettientieu[/color][color=#007700](){ return [/color][color=#0000bb]tientieu[/color][color=#007700]; }} class [/color][color=#0000bb]test[/color][color=#007700]{ public static [/color][color=#0000bb]void main[/color][color=#007700]([/color][color=#0000bb]string [/color][color=#007700][][/color][color=#0000bb]args[/color][color=#007700]){ [/color][color=#0000bb]giangvien gv[/color][color=#007700]=new [/color][color=#0000bb]giangvien[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]input[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]output[/color][color=#007700](); } } [/color]
</div>
</div>
-
12-26-2013, 07:00 AM #25Junior Member
- Ngày tham gia
- May 2015
- Bài viết
- 0
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
package connguoi[/color][color=#007700]; [/color][color=#0000bb]import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].[/color][color=#0000bb]scanner[/color][color=#007700]; public class [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]string hoten[/color][color=#007700]; private [/color][color=#0000bb]int namsinh[/color][color=#007700]; private [/color][color=#0000bb]double mathe[/color][color=#007700]; public [/color][color=#0000bb]void sethoten[/color][color=#007700]([/color][color=#0000bb]string hoten[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]hoten[/color][color=#007700]=[/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]string gethoten[/color][color=#007700](){ return [/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]void setnamsinh[/color][color=#007700]([/color][color=#0000bb]int namsinh[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]namsinh[/color][color=#007700]=[/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]int getnamsinh[/color][color=#007700](){ return [/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]void setmathe[/color][color=#007700]([/color][color=#0000bb]double mathe[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]mathe[/color][color=#007700]=[/color][color=#0000bb]mathe[/color][color=#007700]; } public [/color][color=#0000bb]double getmathe[/color][color=#007700](){ return [/color][color=#0000bb]mathe[/color][color=#007700]; } } class [/color][color=#0000bb]sinhvien [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tienno[/color][color=#007700]; public [/color][color=#0000bb]void settienno[/color][color=#007700]([/color][color=#0000bb]double tienno[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tienno[/color][color=#007700]=[/color][color=#0000bb]tienno[/color][color=#007700]; } public [/color][color=#0000bb]double gettienno[/color][color=#007700](){ return [/color][color=#0000bb]tienno[/color][color=#007700]; }} class [/color][color=#0000bb]giangvien [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tienluong[/color][color=#007700]; public [/color][color=#0000bb]void settienluong[/color][color=#007700]([/color][color=#0000bb]double tienluong[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tienluong[/color][color=#007700]=[/color][color=#0000bb]tienluong[/color][color=#007700]; } public [/color][color=#0000bb]double gettienluong[/color][color=#007700](){ return [/color][color=#0000bb]tienluong[/color][color=#007700]; } public [/color][color=#0000bb]void input[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap thong tin cua giang vien"[/color][color=#007700]); [/color][color=#0000bb]scanner nhap[/color][color=#007700]=new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho va ten"[/color][color=#007700]); [/color][color=#0000bb]sethoten[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nam sinh"[/color][color=#007700]); [/color][color=#0000bb]setnamsinh[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ma the"[/color][color=#007700]); [/color][color=#0000bb]setmathe[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextdouble[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"tien luong hang thang"[/color][color=#007700]); [/color][color=#0000bb]settienluong[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextdouble[/color][color=#007700]()); } public [/color][color=#0000bb]void output[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"thong tin cua giang vien"[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho va ten: "[/color][color=#007700]+[/color][color=#0000bb]gethoten[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"nam sinh: "[/color][color=#007700]+[/color][color=#0000bb]getnamsinh[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"ma the: "[/color][color=#007700]+[/color][color=#0000bb]getmathe[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"tien luong hang thang: "[/color][color=#007700]+[/color][color=#0000bb]gettienluong[/color][color=#007700]()); }} class [/color][color=#0000bb]giamdoc [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tientieu[/color][color=#007700]; public [/color][color=#0000bb]void settientieu[/color][color=#007700]([/color][color=#0000bb]double tientieu[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tientieu[/color][color=#007700]=[/color][color=#0000bb]tientieu[/color][color=#007700]; } public [/color][color=#0000bb]double gettientieu[/color][color=#007700](){ return [/color][color=#0000bb]tientieu[/color][color=#007700]; }} class [/color][color=#0000bb]test[/color][color=#007700]{ public static [/color][color=#0000bb]void main[/color][color=#007700]([/color][color=#0000bb]string [/color][color=#007700][][/color][color=#0000bb]args[/color][color=#007700]){ [/color][color=#0000bb]giangvien gv[/color][color=#007700]=new [/color][color=#0000bb]giangvien[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]input[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]output[/color][color=#007700](); } } [/color]
</div>
</div>
-
12-26-2013, 07:00 AM #26Junior Member
- Ngày tham gia
- Jun 2015
- Bài viết
- 0
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
package connguoi[/color][color=#007700]; [/color][color=#0000bb]import java[/color][color=#007700].[/color][color=#0000bb]util[/color][color=#007700].[/color][color=#0000bb]scanner[/color][color=#007700]; public class [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]string hoten[/color][color=#007700]; private [/color][color=#0000bb]int namsinh[/color][color=#007700]; private [/color][color=#0000bb]double mathe[/color][color=#007700]; public [/color][color=#0000bb]void sethoten[/color][color=#007700]([/color][color=#0000bb]string hoten[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]hoten[/color][color=#007700]=[/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]string gethoten[/color][color=#007700](){ return [/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]void setnamsinh[/color][color=#007700]([/color][color=#0000bb]int namsinh[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]namsinh[/color][color=#007700]=[/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]int getnamsinh[/color][color=#007700](){ return [/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]void setmathe[/color][color=#007700]([/color][color=#0000bb]double mathe[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]mathe[/color][color=#007700]=[/color][color=#0000bb]mathe[/color][color=#007700]; } public [/color][color=#0000bb]double getmathe[/color][color=#007700](){ return [/color][color=#0000bb]mathe[/color][color=#007700]; } } class [/color][color=#0000bb]sinhvien [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tienno[/color][color=#007700]; public [/color][color=#0000bb]void settienno[/color][color=#007700]([/color][color=#0000bb]double tienno[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tienno[/color][color=#007700]=[/color][color=#0000bb]tienno[/color][color=#007700]; } public [/color][color=#0000bb]double gettienno[/color][color=#007700](){ return [/color][color=#0000bb]tienno[/color][color=#007700]; }} class [/color][color=#0000bb]giangvien [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tienluong[/color][color=#007700]; public [/color][color=#0000bb]void settienluong[/color][color=#007700]([/color][color=#0000bb]double tienluong[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tienluong[/color][color=#007700]=[/color][color=#0000bb]tienluong[/color][color=#007700]; } public [/color][color=#0000bb]double gettienluong[/color][color=#007700](){ return [/color][color=#0000bb]tienluong[/color][color=#007700]; } public [/color][color=#0000bb]void input[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nhap thong tin cua giang vien"[/color][color=#007700]); [/color][color=#0000bb]scanner nhap[/color][color=#007700]=new [/color][color=#0000bb]scanner[/color][color=#007700]([/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]in[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho va ten"[/color][color=#007700]); [/color][color=#0000bb]sethoten[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextline[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"nam sinh"[/color][color=#007700]); [/color][color=#0000bb]setnamsinh[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextint[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ma the"[/color][color=#007700]); [/color][color=#0000bb]setmathe[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextdouble[/color][color=#007700]()); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"tien luong hang thang"[/color][color=#007700]); [/color][color=#0000bb]settienluong[/color][color=#007700]([/color][color=#0000bb]nhap[/color][color=#007700].[/color][color=#0000bb]nextdouble[/color][color=#007700]()); } public [/color][color=#0000bb]void output[/color][color=#007700](){ [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"thong tin cua giang vien"[/color][color=#007700]); [/color][color=#0000bb]system[/color][color=#007700].[/color][color=#0000bb]out[/color][color=#007700].[/color][color=#0000bb]println[/color][color=#007700]([/color][color=#dd0000]"ho va ten: "[/color][color=#007700]+[/color][color=#0000bb]gethoten[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"nam sinh: "[/color][color=#007700]+[/color][color=#0000bb]getnamsinh[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"ma the: "[/color][color=#007700]+[/color][color=#0000bb]getmathe[/color][color=#007700]()+[/color][color=#dd0000]"
"[/color][color=#007700]+[/color][color=#dd0000]"tien luong hang thang: "[/color][color=#007700]+[/color][color=#0000bb]gettienluong[/color][color=#007700]()); }} class [/color][color=#0000bb]giamdoc [/color][color=#007700]extends [/color][color=#0000bb]human [/color][color=#007700]{ private [/color][color=#0000bb]double tientieu[/color][color=#007700]; public [/color][color=#0000bb]void settientieu[/color][color=#007700]([/color][color=#0000bb]double tientieu[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tientieu[/color][color=#007700]=[/color][color=#0000bb]tientieu[/color][color=#007700]; } public [/color][color=#0000bb]double gettientieu[/color][color=#007700](){ return [/color][color=#0000bb]tientieu[/color][color=#007700]; }} class [/color][color=#0000bb]test[/color][color=#007700]{ public static [/color][color=#0000bb]void main[/color][color=#007700]([/color][color=#0000bb]string [/color][color=#007700][][/color][color=#0000bb]args[/color][color=#007700]){ [/color][color=#0000bb]giangvien gv[/color][color=#007700]=new [/color][color=#0000bb]giangvien[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]input[/color][color=#007700](); [/color][color=#0000bb]gv[/color][color=#007700].[/color][color=#0000bb]output[/color][color=#007700](); } } [/color]
</div>
</div>
-
01-23-2014, 07:00 AM #27Junior Member
- Ngày tham gia
- Mar 2015
- Bài viết
- 0
nhân sự:
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
[/color][color=#007700]public class [/color][color=#0000bb]nhansu [/color][color=#007700]{ private [/color][color=#0000bb]string hoten[/color][color=#007700]; private [/color][color=#0000bb]int namsinh[/color][color=#007700]; private [/color][color=#0000bb]string mathe[/color][color=#007700]; public [/color][color=#0000bb]void sethoten[/color][color=#007700]([/color][color=#0000bb]string hoten[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]hoten [/color][color=#007700]= [/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]string gethoten[/color][color=#007700](){ return [/color][color=#0000bb]hoten[/color][color=#007700]; } public [/color][color=#0000bb]void setnamsinh[/color][color=#007700]([/color][color=#0000bb]int namsinh[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]namsinh [/color][color=#007700]= [/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]int getnamsinh[/color][color=#007700](){ return [/color][color=#0000bb]namsinh[/color][color=#007700]; } public [/color][color=#0000bb]void setmathe[/color][color=#007700]([/color][color=#0000bb]string mathe[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]mathe [/color][color=#007700]= [/color][color=#0000bb]mathe[/color][color=#007700]; } public [/color][color=#0000bb]string getmathe[/color][color=#007700](){ return [/color][color=#0000bb]mathe[/color][color=#007700]; }}[/color]
</div>
</div>
giảng viên:
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
[/color][color=#007700]public class [/color][color=#0000bb]giangvien [/color][color=#007700]extends [/color][color=#0000bb]nhansu [/color][color=#007700]{ private [/color][color=#0000bb]float luong[/color][color=#007700]; public [/color][color=#0000bb]void setluong[/color][color=#007700]([/color][color=#0000bb]float luong[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]luong [/color][color=#007700]= [/color][color=#0000bb]luong[/color][color=#007700]; } public [/color][color=#0000bb]float getluong[/color][color=#007700](){ return [/color][color=#0000bb]luong[/color][color=#007700]; }}[/color]
</div>
</div>
giám đốc:
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
[/color][color=#007700]public class [/color][color=#0000bb]giamdoc [/color][color=#007700]extends [/color][color=#0000bb]nhansu [/color][color=#007700]{ private [/color][color=#0000bb]float tientieuhangthang[/color][color=#007700]; public [/color][color=#0000bb]void settientieuhangthang[/color][color=#007700]([/color][color=#0000bb]float tientieuhangthang[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tientieuhangthang [/color][color=#007700]= [/color][color=#0000bb]tientieuhangthang[/color][color=#007700]; } public [/color][color=#0000bb]float gettientieuhangthang[/color][color=#007700](){ return [/color][color=#0000bb]tientieuhangthang[/color][color=#007700]; }}[/color]
</div>
</div>
sinh vien:
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
[/color][color=#007700]public class [/color][color=#0000bb]sinhvien [/color][color=#007700]extends [/color][color=#0000bb]nhansu [/color][color=#007700]{ private [/color][color=#0000bb]float tienno[/color][color=#007700]; public [/color][color=#0000bb]void settienno[/color][color=#007700]([/color][color=#0000bb]float tienno[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tienno [/color][color=#007700]= [/color][color=#0000bb]tienno[/color][color=#007700]; } public [/color][color=#0000bb]float gettienno[/color][color=#007700](){ return [/color][color=#0000bb]tienno[/color][color=#007700]; }}[/color]
</div>
</div>
main
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã nguồn PHP:[color=#000000]
[/color][color=#007700]public class [/color][color=#0000bb]sinhvien [/color][color=#007700]extends [/color][color=#0000bb]nhansu [/color][color=#007700]{ private [/color][color=#0000bb]float tienno[/color][color=#007700]; public [/color][color=#0000bb]void settienno[/color][color=#007700]([/color][color=#0000bb]float tienno[/color][color=#007700]){ [/color][color=#0000bb]this[/color][color=#007700].[/color][color=#0000bb]tienno [/color][color=#007700]= [/color][color=#0000bb]tienno[/color][color=#007700]; } public [/color][color=#0000bb]float gettienno[/color][color=#007700](){ return [/color][color=#0000bb]tienno[/color][color=#007700]; }}[/color]
</div>
</div>
-
03-01-2014, 07:00 AM #28Junior Member
- Ngày tham gia
- Feb 2015
- Bài viết
- 0
nhansu
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã:public class nhansu { private string hoten, mathe; private int namsinh; public void sethoten(string hoten) { this.hoten = hoten; } public void setmathe(string mathe) { this.mathe = mathe; } public void setnamsinh(int namsinh) { this.namsinh = namsinh; } public string gethoten() { return hoten; } public string getmathe() { return mathe; } public int getnamsinh() { return namsinh; } }
</div>
</div>
sinhvien
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã:public class sinhvien extends nhansu{ private int tienhocphiconno; public void settienhocphiconno(int tienhocphiconno) { this.tienhocphiconno = tienhocphiconno; } public int gettienhocphiconno() { return tienhocphiconno; } }
</div>
</div>
giangvien
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã:public class giangvien extends nhansu{ private int tienluong; public void settienluong(int tienluong) { this.tienluong = tienluong; } public int gettienluong() { return tienluong; } }
</div>
</div>
giamdoc
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã:public class giamdoc extends nhansu{ private int tientieuhangthang; public void settientieuhangthang(int tientieuhangthang) { this.tientieuhangthang = tientieuhangthang; } public int gettientieuhangthang() { return tientieuhangthang; } }
</div>
</div>
main
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã:public class main { public static void main(string[] args) { giangvien a=new giangvien(); a.sethoten("david cofferfield"); a.setmathe("nls.13130344"); a.setnamsinh(1995); a.settienluong(1000000000); //in cac gia tri ra man hinh system.out.println("ho ten: "+a.gethoten()); system.out.println("ma the: "+a.getmathe()); system.out.println("nam sinh: "+a.getnamsinh()); system.out.println("tien luong: "+a.gettienluong()+"$"); } }
</div>
</div>
-
03-06-2014, 07:00 AM #29Junior Member
- Ngày tham gia
- Mar 2015
- Bài viết
- 0
em nộp bài, mong anh giúp đỡ em nhiều
package edu.ducky.basic;
import java.util.scanner;
class sinhvien{
private string hoten;
private int namsinh;
private int mathe;
private double tien_hoc_phi_con_no;
public void sethoten(string hoten){
this.hoten = hoten;
}
public string gethoten(){
return hoten;
}
public void setnamsinh(int namsinh){
this.namsinh = namsinh;
}
public int getnamsinh(){
return namsinh;
}
public void setmathe(int mathe){
this.mathe = mathe;
}
public int getmathe(){
return mathe;
}
public void settien_hoc_phi(double tien_hoc_phi_con_no){
this.tien_hoc_phi_con_no = tien_hoc_phi_con_no;
}
public double gettien_hoc_phi(){
return tien_hoc_phi_con_no;
}
}
class giangvien extends sinhvien{
private double tien_luong_thang;
public void settien_luong_thang(double luong){
this.tien_luong_thang = luong;
}
public double gettien_luong_thang(){
return tien_luong_thang;
}
}
class giamdoc extends sinhvien{
private double tien_tieu_thang;
public void settien_tieu(double tien_tieu_thang){
this.tien_tieu_thang = tien_tieu_thang;
}
public double gettien_tieu(){
return tien_tieu_thang;
}
}
public class helloworld {
public static void main(string[] args) {
scanner input = new scanner(system.in);
giangvien gv = new giangvien();
system.out.println("ho va ten: ");
gv.sethoten(input.nextline());
system.out.println("nam sinh: ");
gv.setnamsinh(input.nextint());
system.out.println("ma the gv: ");
gv.setmathe(input.nextint());
system.out.println("luong thuong hang thang: ");
gv.settien_luong_thang(input.nextdouble());
system.out.println("thong tin cua giang vien: ");
system.out.println("ho va ten: "+gv.gethoten());
system.out.println("nam sinh: "+gv.getnamsinh());
system.out.println("ma the: "+gv.getmathe());
system.out.println("luong thuong hang thang: "+gv.gettien_luong_thang());
system.out.println(" ");
}
}
-
03-24-2014, 07:00 AM #30Junior Member
- Ngày tham gia
- Jun 2014
- Bài viết
- 0
mong mọi người chỉ bảo thêm !
<div class="bbcodeblock bbcodequote bbcmspoilerblock">
<div class="attribution type"><noscript>spoiler (move your mouse to the spoiler area to reveal the content)</noscript>
show spoiler
hide spoiler
</div>
<div class="quotecontent">
<div class="bbcm_spoiler_noscript"><blockquote>
Mã:package exam16; import java.util.scanner; class nhansu{ private string name; private int year; private string idcard; public string getname() { return name; } public void setname(string name) { this.name = name; } public int getyear() { return year; } public void setyear(int year) { this.year = year; } public string getidcard() { return idcard; } public void setidcard(string idcard) { this.idcard = idcard; } } class hocsinh extends nhansu{ private int owemoney; public int getowemoney() { return owemoney; } public void setowemoney(int owemoney) { this.owemoney = owemoney; } } class giangvien extends nhansu{ private int salary; public int getsalary() { return salary; } public void setsalary(int salary) { this.salary = salary; } } class giamdoc extends nhansu{ private int spendingmoney; public int getspendingmoney() { return spendingmoney; } public void setspendingmoney(int spendingmoney) { this.spendingmoney = spendingmoney; } } public class extends { public static void main(string args[]){ scanner input = new scanner(system.in); giangvien gv = new giangvien(); system.out.println(" + nhap thong tin ve giang vien:"); system.out.print("\t - name: "); gv.setname(input.nextline()); system.out.print("\t - year: "); gv.setyear(input.nextint()); input.nextline(); system.out.print("\t - id card: "); gv.setidcard(input.nextline()); system.out.print("\t - salary: "); gv.setsalary(input.nextint()); system.out.println("*** infomation lecturer ***"); system.out.print("\t name: "+gv.getname()+" \t year: "+gv.getyear()+" \t id card: "+gv.getidcard()+" \t salary: "+gv.getsalary()); } }
</div>
</div>
"căn do xuất tinh ngược này do lượng đường cao dẫn tới thương tổn dây thần kinh tại các cơ vòng khiến người bệnh bị xuất tinh ngược. thường ngày, khi xuất tinh thì cơ thắt cổ bọng đái đóng lại để...
Nguyên nhân và giải pháp cho tình trạng không xuất tinh ở phái mạnh?