15 a static method is also known as an method a

This preview shows page 3 - 6 out of 31 pages.

15.A static method is also known as a(n) __________ method.a. instanceb. publicc. privated. class
16.By default, methods contained in a class are __________ methods.
17.Assume that you have created a class namedMyClass, and that a workingprogram contains the following statement:output MyClass.numberWhich of the following do you know?
18.Assume that you have created an object namedmyObjectand that a workingprogram contains the following statement:output myObject.getSize()Which of the following do you know?
We have textbook solutions for you!
/JavaScript-The-Web-Warrior-Series-6th-Edition-9781305078444-2709/
The document you are viewing contains questions related to this textbook.
Chapter 7 / Exercise 14
JavaScript: The Web Warrior Series
Vodnik
Expert Verified
Programming Logic and Design, 8eSolutions 10-4b.getSize()returns a numberc.getSize()receives athisreferenced. all of the above19.Assume that you have created a class that contains a private field namedmyFieldand a nonstatic public method namedmyMethod(). Which of thefollowing is true?a.myMethod()has access to and can usemyFieldb.myMethod()does not have access to and cannot usemyFieldc.myMethod()can usemyFieldbut cannot pass it to other methods.d.myMethod()can usemyFieldonly ifmyFieldis passed tomyMethod()parameter...as a
20.An object can be __________.
Programming Exercises1.Identify three objects that might belong to each of the following classes:a.Buildingb.Artistc.BankLoanA sample solution follows
The students will have a variety of answers for these questions.Some examples might be:a.the Empire State Building in New York City, the Louvre Museum in Paris, myhouseb.Pablo Picasso, Rembrandt, the guy who makes cartoon portraits at the localrestaurantc.Loan # 344344 at Home State Bank, my mortgage, your college loan2.Identify three different classes that might contain each of these objects:a.William Shakespeareb.My favorite red sweater
Programming Logic and Design, 8eSolutions 10-5c.Public School 23 in New York City
3.Design a class namedTermPaperthat holds an author’s name, the subject of thepaper, and an assigned letter grade. Include methods to set the values for each datafield and display the values for each data field. Create the class diagram and write thepseudocode that defines the class.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 31 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
JavaScript: The Web Warrior Series
The document you are viewing contains questions related to this textbook.
Chapter 7 / Exercise 14
JavaScript: The Web Warrior Series
Vodnik
Expert Verified

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture