1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
saw5 [17]
4 years ago
11

What methods would you add to make this class declarationvery useful?

Computers and Technology
2 answers:
svlad2 [7]4 years ago
6 0

Answer:

void SetAge(int age) , void meow()

Explanation:

Since the class has an itsAge variable as private and has a GetAge() method. There should be a SetAge() method to set the value of the age.

Also, since it is a Cat class, it is better to have a method that mimics the voice of the cat, meow()

sergij07 [2.7K]4 years ago
5 0

Category(int age)- This method is used to declaring the age.

incrementingAge(int age)-This method is used for incrementing  the age.

SettingAge(int age) -This method is used to initializing the age.

These are the three methods for making declaration very useful.

Explanation:

Class Cat

{

public:

Category(int age)

{

itsAge =age;

}

int incrementingAge(int age)

{

itsAge = itsAge+ age;

}

int SettingAge(int age)

{

itsAge =age;

}

int GetAge() const;

private:

         int itsAge;

};Answer:

You might be interested in
Write the definition of a method printdottedline, which has no parameters and doesn't return anything. the method prints to stan
oksian1 [2.3K]
Void <span>printdottedline()
{
   printf(".....\n");
}

</span>void printdottedline()
{
   printf(".....\n");
}
8 0
3 years ago
In a spreadsheet, what is text wrapping used for?
denpristay [2]

Text wrapping automatically alters cell height so as to give room for all of the text to fit inside the spreadsheet.

<h3>What is the feature about?</h3>

The Excel wrap text feature is known to be a tool that can totally display large text in a cell and it is one where there is no overflowing to other part or cells.

Therefore, Text wrapping automatically alters cell height so as to give room for all of the text to fit inside the spreadsheet.

Learn more about text wrapping from

brainly.com/question/5625271

#SPJ11

6 0
2 years ago
Which are characteristics of pseudocode? Select all that apply.
jeka94

Answer:

A,B,C

Explanation:

3 0
3 years ago
Cyberwar is a potential threat to America's security, both physically and psychologically. This thesis statement is most likely
OLEGan [10]

Answer:

Option C i.e., concept is the correct option.

Explanation:

The following option is true because cyberwar is the threat that is a potential attack on the internet for the purpose to damage the security and the information of the national and the international organizations by the DoS(Denial of service attack) and virus and also to steal the confidential data.

6 0
4 years ago
I will make you brainless Just answer this question!!
Cerrena [4.2K]

Answer:

ryuwtyyfdzhufyi6rfjiryj

7 0
3 years ago
Other questions:
  • What is (12.2a + 9.7b) – (18.1b – 0.2a) – (6.7a + 6.8b), simplified?
    9·1 answer
  • When evaluating portable CD players, you consider price, the sound quality, and ease of using the controls. These are your _____
    8·2 answers
  • How are entries ordered in a reference list
    9·1 answer
  • 8. Which of the following could be measured by defining a goal in Google Analytics?
    13·1 answer
  • Suppose that the performance measure is concerned with just the first T time steps of the environment and ignores everything the
    14·1 answer
  • De que se dio cuenta el sol al participar de la limpieza de playas?
    5·1 answer
  • How do you suppose a request travels from one computer to another? How does the request know where to go?
    8·1 answer
  • The notes added to slides can be seen during the presentation. TRUE OR FALSE​
    13·1 answer
  • Which of the following is a set of security controls designed to protect payment account security such as a credit card transact
    13·2 answers
  • Which of the statements below is true?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!