Java a.  Fill in the blank to complete the definition of a class named Person (the class header) that has a public String field named name and a public integer field named age. _____________________________     public String name;     public int age; }   b.  Fill in the blank to write the definition of a class named Stuff (the class header) that simply has a public String field named stuff. ___________________________     public String stuff; }

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter4: More Object Concepts
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

Java

a. 

Fill in the blank to complete the definition of a class named Person (the class header) that has a public String field named name and a public integer field named age.

_____________________________
    public String name;
    public int age;
}

 

b. 

Fill in the blank to write the definition of a class named Stuff (the class header) that simply has a public String field named stuff.

___________________________
    public String stuff;
 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
void method
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT