pahelp naman po baka po alam nyo kung paano code at explanation neto
Define a class Human with properties "first name" and "last name". Define
the class Student inheriting Human, which has the property "mark". Define
the class Worker inheriting Human with the property "wage" and "hours
worked". Implement a "calculate hourly wage" method, which calculates a
worker’s hourly pay rate based on wage and hours worked. Write the
corresponding constructors and encapsulate all data in properties.
TIA
Define a class Human with properties "first name" and "last name". Define
the class Student inheriting Human, which has the property "mark". Define
the class Worker inheriting Human with the property "wage" and "hours
worked". Implement a "calculate hourly wage" method, which calculates a
worker’s hourly pay rate based on wage and hours worked. Write the
corresponding constructors and encapsulate all data in properties.
TIA