QUESTION 4 30 points Save Answer Complete the following program that contains three classes One, Two and Three. • Class
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
QUESTION 4 30 points Save Answer Complete the following program that contains three classes One, Two and Three. • Class
QUESTION 4 30 points Save Answer Complete the following program that contains three classes One, Two and Three. • Class One contains a function called D that receive a number and return its double. • Class Two contains two functions; function M that display a greeting message and function P that print the numbers from 1-10 using for loop. • Class Three contains three integer variables X, Y and Z the value of the variables should be entered by the user. Create three objects from the three classes. Provide the necessary code to call all the functions and variables (read and print) of the three objects using a sample data