subject

Write the definition of a class that has the following properties:
a. the name of the class is secrettype .
b. the class secrettype has four instance variables: name of type string, age and weight of type int , and height of type
double.
c. the class secrettype has the following member functions:
print— outputs the data stored in the instance variables with the appropriate titles
setname— function to set the name
setage— function to set the age
setweight— function to set the weight
setheight —function to set the height
getname— value-returning function to return the name
value-returning function to return the age
getage
getweight —value-returning function to return the weight
getheight —value-returning function to return the height
default constructor—sets name to the empty string and age , weight , and height to o
constructor with parameter—sets the values of the instance variables to the values specified by the user
d. write the definition of the member functions of the class secrettype as described in part c.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 12:00
3. when you right-click a linked spreadsheet object, what commands do you choose to activate the excel features? a. linked worksheet object > edit b. edit data > edit data c. linked spreadsheet > edit d. object > edit data
Answers: 2
question
Computers and Technology, 23.06.2019 12:20
When guido van rossum created python, he wanted to make a language that was more than other programming languages. a. code-based b. human-readable c. complex d. functional
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
If an appliance consumes 500 w of power and is left on for 5 hours, how much energy is used over this time period? a. 2.5 kwh b. 25 kwh c. 250 kwh d. 2500 kwh
Answers: 1
question
Computers and Technology, 24.06.2019 16:30
What is the item which could be matched with a statement below? software installed on a computer that produces pop-up ads using your browser an example of social engineering malware loads itself before the os boot is complete type of spyware that tracks your keystrokes, including passwords windows key + l the practice of tricking people into giving out private information or allowing unsafe programs into the network or computer when someone who is unauthorized follows the employee through a secured entrance to a room or building a type of malware that tricks you into opening it by substituting itself for a legitimate program a computer that has been hacked, and the hacker is using the computer to run repetitive software in the background without the user's knowledge an infestation designed to copy itself repeatedly to memory, on drive space, or on a network
Answers: 1
You know the right answer?
Write the definition of a class that has the following properties:
a. the name of the class...
Questions
Questions on the website: 13722367