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

  • SEARCH
  • Home
  • 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 6930939
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:30:46+00:00 2026-05-27T11:30:46+00:00

Basically this is what I am trying to achieve. classname@address(?)[original toString() ], object’s name,

  • 0

Basically this is what I am trying to achieve.

classname@address(?)[original toString()], object’s name, object’s age

@Override public String toString()
{
return String.format("%s , %s , %d", this.toString(), this.getName(),this.getAge());
}

Problem, toString() gets called recursively.

I can’t call super.toString() because that’s not what I want. I want ‘this‘ to call the original toString().

This

this.super.toString() 

doesn’t work for obvious reasons.

I’m running out of steam, can this be done once a method gets overridden? I.e. call the original implementation ?

(my edit) Basically what I need is: override toString to display two properties of ‘this’ object, and I also want to have ‘this’ call the original toString.

This is not a project , or work. Just playing(learning) with Java language. Thanks

  • 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-05-27T11:30:46+00:00Added an answer on May 27, 2026 at 11:30 am

    You’re looking for super.toString().

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

Sidebar

Related Questions

I am basically trying to achieve what this page has: When clicked on an
I'm basically trying to achieve this effect. It can be done with pretty much
Basically what I'm trying to achieve is to make the object reference another object
Im trying do this basically: var tr = document.createElement(tr); var td = document.createElement(td); td.appendChild(document.createTextNode('<input
Basically this is a question how to access local scope handler. I trying to
Basically, I am trying this, but this only leaves array filled with zeros .
I am trying to to build a Felix bundle in Eclipse. This basically includes
I am having trouble trying to get iterators for inner sub-containers. Basically imagine this
this is what im trying to do... ul#newnav a{ /*--This is basically the hover
I'm trying to modify the code from this script . Basically I'm trying to

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.