subject
World Languages, 04.10.2021 20:00 carterkanye468

1. Tạo lớp Peson có thuộc tính FullName và Birthday.  FullName chỉ chứa các ký tự bảng chữ cái và khoảng trắng.
 Sinh nhật có năm nhỏ hơn hoặc bằng năm hiện tại.
 Hàm tạo tạo có 2 tham số để đặt giá trị là FullName và Birthday.
 Tạo phương thức getAge () để trả về tuổi của người trong lớp Person.
 Tạo phương thức Display () để hiển thị họ tên và tuổi của người.
2. Tạo lớp Nhân viên bắt nguồn từ lớp Người
 Nhân viên có JoinDate là một thuộc tính. JoinDate nhỏ hơn hoặc bằng
ngày hiện tại..
 Tạo phương thức khởi tạo cho Employee kế thừa từ phương thức khởi tạo của Person và set
giá trị để JoinDate
 Tạo phương thức getWorkingYear () để trả về số năm mà
nhân viên đã được làm việc.
 Ghi đè phương thức Display () để hiển thị tên của nhân viên, joindate và
mức lương. Nhân viên tham gia công việc có mức lương là 1, sau 3 năm, nó
tăng một lần.
3. Tạo lớp Demo
 Thể hiện lớp Nhân viên.
 Hiển thị tuổi của Nhân viên (sử dụng phương thức getAge ()

ansver
Answers: 1

Another question on World Languages

question
World Languages, 23.06.2019 13:30
Which of the following is a good strategy for finding the meaning of an unfamiliar word? (5 points) put the book down and do something else for at least 30 minutes. count the syllables in the word and find others that are similar in length. make inferences about the meaning based on the words around it. keep reading past that word so that you can continue with the story.
Answers: 2
question
World Languages, 23.06.2019 13:40
Think of someone you consider to be a great public speaker. what do you admire about this person? what qualities does this person exhibit that you would like to develop in your own life?
Answers: 1
question
World Languages, 24.06.2019 20:50
In the following scenario, which type of troublesome language is being used? mom: aren't you going out with andrea tonight? jenna: no, her mom made her stay home to be her personal slave.
Answers: 2
question
World Languages, 25.06.2019 02:30
In addition to gpa most four year colleges also review all of the following about an applicant expect
Answers: 1
You know the right answer?
1. Tạo lớp Peson có thuộc tính FullName và Birthday.  FullName chỉ chứa các ký tự bảng chữ cái và...
Questions
question
Mathematics, 22.01.2021 05:20
question
Mathematics, 22.01.2021 05:20
question
Mathematics, 22.01.2021 05:20
question
Mathematics, 22.01.2021 05:20
question
Mathematics, 22.01.2021 05:20
question
Mathematics, 22.01.2021 05:20
question
Mathematics, 22.01.2021 05:20
question
Mathematics, 22.01.2021 05:20
question
Physics, 22.01.2021 05:20