i want to explain and answer java

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

i want to explain and answer java

Post by answerhappygod »

i want to explain and answer
java
I Want To Explain And Answer Java 1
I Want To Explain And Answer Java 1 (183.11 KiB) Viewed 48 times
(Person Class) Design a class named Person that contains: O o name, gender, and personCase as a private attribute o Non-default constructor that specifies name and gender o toString method that returns person data o personCase () method with no implementation (Student Class) Design a class named Student which is a child of Person that contains: o studentID as a private attribute o Nondefault constructor that specifies the name, gender, and studentID o toString method that returns student data o Implement personCase (that assigns “Not Studying” to personCase if studentID equals 0, “Studying” in case studentID greater than 0, and “Not a student" in case studentID less than 0. (Employee Class) Design a class named Employee which is a child of Person that contains: o employeeld as a private attribute o Non-default constructor that specifies the name, gender, and employeeID o toString method that returns employee data o Implement personCase () that assign “Technical” to personCase if employeeld end with “000”, “Academic” in case employeeld end with “111”, and “Handicraft” in case employeeld end with “010”. (Application Class) Design a class named Application that contains: o N number of students ask the user to enter each student's data) o For each student invoke personCase to check student case then, display each student's data o N number of employees (ask the user to enter each employee's data) o For each employee invoke personCase to check employee case then, display each employee's data
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply