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 9272621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:54:58+00:00 2026-06-18T15:54:58+00:00

Another similar question: When calling a method (from separate class) that returns a value

  • 0

Another similar question:
When calling a method (from separate class) that returns a value which is derived from another class (from within the separate class). Do we need to instantiate the variables of derived class in that calling method?

  • 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-18T15:55:01+00:00Added an answer on June 18, 2026 at 3:55 pm

    If you are calling a method in another class, the variables already are instantiated. In order to call said method, you must have either a) constructed a new object i.e

    Object myObject = new Object();
    myObject.myMethod();
    

    or b) the method is static, which means it is instantiated already and you can call it as

    Object.myMethod();
    

    in either case, the variables used by the class are instantiated upon construction, and those used locally by the function are allocated once the function is called.

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

Sidebar

Related Questions

I found another similar question: Best way to download images from XML content in
I see another question on stackoverflow.com whose title seems similar but that doesnot fulfil
I am aware of another question that is quite similar, but for some reason
I'm aware that there is another similar question on this topic, but personally I
Okay, so there's another similar question that I found to this on SO but
Note: I had another similar question about how to GZIP data using Ruby's zlib
I saw another similar question answered here - Velocity editor plugin for Eclipse? .
This is very similar to another recent question: How can I return the current
In another question , I asked something similar but I ended up just posting
I need to use scp update some directory at another server. It is similar

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.