Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Inheritance using toString() method

  1. #1
    Junior Member
    Join Date
    Aug 2024
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Inheritance using toString() method

    {code=Java} how do I generate my toString()method
    from code setting if I don't know how to outline the properties, when I have parent class,subclass and child class/code

    --- Update ---

    {codeJava} How can I create toString()method for a multilated inheritance when I cant outline my properties in my code settings/code
    Last edited by Fegbada Agatha; August 8th, 2024 at 03:14 AM.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Inheritance using toString() method

    how to outline the properties
    Can you explain what you mean there? I don't understand what you are asking.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. [SOLVED] toString method()
    By arhzz in forum What's Wrong With My Code?
    Replies: 2
    Last Post: May 23rd, 2020, 05:03 PM
  2. toString method
    By pelane in forum What's Wrong With My Code?
    Replies: 3
    Last Post: April 23rd, 2012, 01:42 AM
  3. toString method
    By feldmanb700 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: October 17th, 2011, 09:20 PM
  4. Help with toString method and an addObject method?
    By Camisado in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 12th, 2011, 07:00 AM
  5. [SOLVED] toString() method
    By chronoz13 in forum Object Oriented Programming
    Replies: 12
    Last Post: January 19th, 2010, 06:44 AM