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
vichka [17]
4 years ago
10

Define a method printAll() for class PetData that prints output as follows with inputs "Fluffy", 5, and 4444. Hint: Make use of

the base class' printAll() method. Name: Fluffy, Age: 5, ID: 4444
Computers and Technology
1 answer:
Vsevolod [243]4 years ago
3 0

Answer and Explanation:

public class petData

{

private int ageYears;

private String fullName;

private int IdNumber;

public void setName (String givenName)

{

fullName = givenName;

return;

}

public void setAge (int numYears)

{

ageYears = numYears;

return;

}

public void setID (int numID)

{

IdNumber = numID;

return;

}

public void printAll ()

{

System.out.print ("Name: " + fullName);

System.out.print (", Age: " + ageYears);

return;

}

}

From the above, we have defined a class petData, with methods setName, setAge, printAll. These methods all make use of the string variable fullName and integer variable ageYears. From the above, setName method sets fullName variable to name given to its string parameter givenName while setAge method does the same with the ageYears variable in initializing it. This is also done by the ID method. These variables are then used by printAll method in printing out the Name and age of the object which would be created with the petData class

E. g: petData dog= new petData();

You might be interested in
In most presentation software, custom animations are added from the _____.
gtnhenbr [62]

Answer:

Explanation:

the answer is.....normal view

8 0
3 years ago
HELP!' Prompt<br> In a table, what is a field?
ser-zykov [4K]

Answer:

Fields are the components that provide structure for a table. In fact, you can't have a table without fields. ... Fields in a table store the same category of data in the same data type. For example, if you have a NAME field in a table of customers, the entries for this field are all customer names and are stored as text.

3 0
3 years ago
Consider the following instructions for a game element: Move Forward If not at end, move forward Else stop This is an example of
xz_007 [3.2K]

Answer:

C.

Explanation:

8 0
3 years ago
Fill in the blank question. Suppose U.S. nominal GDP was $14.9 trillion in 2011 and $15.6 trillion in 2012. The growth rate of n
Juliette [100K]

The growth rate of nominal GDP in the U.S between 2011 to 2012 is 4.7%

<h3>Equation</h3>

An equation is an expression that shows the relationship between two or more variables and numbers.

From the question:

Growth rate = [(15.6 trillion - 14.9 trillion) / (14.9 trillion)] * 100% = 4.7%

The growth rate of nominal GDP in the U.S between 2011 to 2012 is 4.7%

Find out more on Equation at: brainly.com/question/2972832

7 0
2 years ago
What is connectivism and how does it apply to online learning?
iragen [17]

Answer:

Connectivism is a kind of learning theory that was created by George Siemens. It also can be understood as educational theory or view or global strategy.

Connectivism was a core principle used for designing the first MOOCs (unlike the "modern" versions that come out of elite universities and rather represent in our opinion a propaganda purpose

<h2>Principles of connectivism:</h2>
  • Learning and knowledge rests in diversity of opinions.
  • Learning is a process of connecting specialized nodes or information sources.
  • Learning may reside in non-human appliances.
  • Capacity to know more is more critical than what is currently known
  • Nurturing and maintaining connections is needed to facilitate continual learning.
  • Ability to see connections between fields, ideas, and concepts is a core skill.
  • Currency (accurate, up-to-date knowledge) is the intent of all connectivist learning activities.
  • Decision-making is itself a learning process. Choosing what to learn and the meaning of incoming information is seen through the lens of a shifting reality. While there is a right answer now, it may be wrong tomorrow due to alterations in the information climate affecting the decision
8 0
3 years ago
Other questions:
  • What are 3 characteristics of syndrome E?
    13·1 answer
  • A senior center would like to add a new computer to their library so that members can check their email and read book reviews
    11·2 answers
  • Within the information category of functions, you will find functions that ____.
    7·2 answers
  • Users are reporting Internet connectivity issues. The network administrator wants to determine if the issues are internal to the
    15·1 answer
  • Please help ASAP!!! :))
    9·1 answer
  • 2.20 Write an expression involving a three-letter string s that evaluates to a string whose characters are the characters of s i
    6·1 answer
  • What are some of the functions in the Consolidate dialog box? Check all that apply.
    6·1 answer
  • Which strategies for effective presentations is Ian using in his opening? Check all that apply.
    8·2 answers
  • Which two features could be added to a game using an "if () then " block
    6·1 answer
  • shayne keeps his home office computer on his desk. he wants to use a wireless keyboard and mouse, and to send output to his prin
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!