Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8466667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:24:31+00:00 2026-06-10T15:24:31+00:00

I have this question on a homework assignment: The method foo() defined in the

  • 0

I have this question on a homework assignment:

The method foo() defined in the class Quiz has the following signature: public static double foo(double f). What can you say about foo()?

  1. It is a class method

  2. It is an instance variable

  3. It is an instance method

  4. It is a class attribute

I am thinking it is a class method because foo() is declared in a class. Is the answer as straight-forward as I think?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T15:24:33+00:00Added an answer on June 10, 2026 at 3:24 pm

    The answer is that its a class method

    a field or a method declared with static is always an attribute or behavior of the class respectively.

    Non-static variables are one per object, where as static variables are one per
    class
    .

    static method do NOT have access to the Non-static variables or methods.

    static methods and variables can be called using the Class_Name with "." (dot) operator.

    Though if the class do NOT have private constructor (Math class has private constructor), then you can also create an instance to class to call the static methods or variables, but thats not the legal way to do it.

    You should also remember that, you can call static methods or variables using a null Reference of the class in which they reside…. Yes and it works….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this homework question: Assume a Database table has 0 records at time
Good evening everyone, I have a quick question on a homework assignment my class
This is my first question, and yes, it is a homework assignment. I have
I'd like to have the following. Imagine you have a homework assignment that has
I have a question about my C++ homework. I am just confused about *this.
I have this question: How could I call a codebehind method from jquery? I
I have this view (DetailsContainer, first class in code section of this question) with
I'm stuck with this Java homework question: Write a new method, Refund, that simulates
I posted a question earlier for a homework assignment but I have a new
Disclaimer: this question is directly related to my programming homework. My C++ assignment consists

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.