Question: Write a program where you 1. Define a class Human which will have the follwing properties: (7) age (int) gender 2. Define a class Student
Write a program where you 1. Define a class "Human" which will have the follwing properties: (7) age (int) gender 2. Define a class "Student" which will have two more properties and also inherites from Human class (7) score(int) name () 3. Define a class "Work" which will have two more properties and inherites from Human class (7) salary department 4.In main Function (9) Create object of each classes and print the properties of each class
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
