Def changeName(self, newName):
self. petName = newName
class petCarrier:
size = '...
Computers and Technology, 24.05.2021 17:00 quan5379
Def changeName(self, newName):
self. petName = newName
class petCarrier:
size = 'medium'
color = 'red'
# main program
myPetA = pet('dog', 'Spot')
myPetB = pet('cat', 'Fluffy')
accessible to the entire program
limited to the petCarrier class
limited to the __init__ method
limited to the pet class
Answers: 3
Computers and Technology, 22.06.2019 22:30
Write a full class definition for a class named player , and containing the following members: a data member name of type string .a data member score of type int .a member function called setname that accepts a parameter and assigns it to name . the function returns no value.a member function called setscore that accepts a parameter and assigns it to score . the function returns no value.a member function called getname that accepts no parameters and returns the value of name .a member function called getscore that accepts no parameters and returns the value of score .this is what i have, aparently this is wrong: class player{private: string name; int score; public: void player: : setname (string n){name =n; }void player: : setscore (int s){score = s; }string player: : getname (){return name; }int player: : getscore (){return score; }};
Answers: 2
Computers and Technology, 22.06.2019 22:30
One of your customers wants you to build a personal server that he can use in his home. one of his concerns is making sure he has at least one backup of their data stored on the server in the event that a disk fails. you have decided to back up his data using raid. since this server is for personal use only, the customer wants to keep costs down. therefore, he would like to keep the number of drives to a minimum. which of the following raid systems would best meet the customer's specifications? a. raid 0 b. raid 1 c. raid 5 d. raid 10
Answers: 3
Computers and Technology, 23.06.2019 18:50
What is transmission control protocol/internet protocol (tcp/ip)? software that prevents direct communication between a sending and receiving computer and is used to monitor packets for security reasons a standard that specifies the format of data as well as the rules to be followed during transmission a simple network protocol that allows the transfer of files between two computers on the internet a standard internet protocol that provides the technical foundation for the public internet as well as for large numbers of private networks
Answers: 2
Computers and Technology, 23.06.2019 19:30
What are loans to a company or government for a set amount of time
Answers: 1
Chemistry, 05.04.2021 07:20
Mathematics, 05.04.2021 07:20
Chemistry, 05.04.2021 07:20
Mathematics, 05.04.2021 07:20
Biology, 05.04.2021 07:20
English, 05.04.2021 07:20
English, 05.04.2021 07:20
Mathematics, 05.04.2021 07:20
World Languages, 05.04.2021 07:20
Mathematics, 05.04.2021 07:20
English, 05.04.2021 07:20