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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:22:44+00:00 2026-06-05T22:22:44+00:00

The text in the book i am reading states in summary Technically, constructors cannot

  • 0

The text in the book i am reading states in summary

“Technically, constructors cannot be overidden because they have same name as the current class. New constructors are created instead of being inherited. This system works fine;…”

The part I don’t understand is when they say this:

“when your class’s constuctor methods are called, the constructor methods with the same signature for all your superclasses are also called . Therefore, initialization can happen for all parts of a class you inherit”

What I don’t understand is the same signature section…. It comes accross to me as though all the constructors must have the same signature, and then when you initialize a child class object all it’s super classes will automatically be called instead of having to call super(arg1,arg2) for each sub class…. Is this what they are stating?

  • 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-05T22:22:46+00:00Added an answer on June 5, 2026 at 10:22 pm

    when your class’s constuctor methods are called, the constructor methods with the same signature for all your superclasses are also called . Therefore, initialization can happen for all parts of a class you inherit

    This is incorrect. First, a note on terminology: constructors are not methods, so the term “constructor methods” does not make any sense.

    While it is true that a super class constructor is invoked, it needn’t have the same signature. If a subclass constructor begins with a super class constructor invocation expression such as

    class Student extends Person {
        public Student(String name) {
            super(name, Occupation.STUDENT);
        }
    }
    

    the superclass constructor matching the argument count and types in invoked. You are completely free which arguments you pass to that constructor.

    If the subclass constructor does not begin with a super constructor invocation expression, the compiler will insert a call to the accessible zero-argument constructor of the superclass for you – or raise a compilation error if there is no such constructor.

    Sams Teach Yourself Java 2 in 21 Days for now

    You are aware that Java 2 is a decade out of date? Any book this old will teach you obsolete stuff, that you would be best served to forget quickly. Why not use a more modern book?

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

Sidebar

Related Questions

I have the following text tooooooooooooon According to this book I'm reading, when the
I have a description text file with content constructed in such manner: Book title
I have a text file (e.g. a Gutenberg book) I want to display in
I'm reading in my text book about virtual functions in C++ and my book
I'm reading my algorithms text book, and I'm reading about recurrence relations and finding
I am reading the dragon book. Quoting the text from the book (3.1.4 Lexical
I am reading through O'Reilly's Programming Perl, 3rd Edition, and the text states that
I was reading over my text book Data Structures and Algorithms: By Mark Allen
I am reading a algorithms book by S.DasGupta. Following is text snippet from the
I am reading algorithm analysis topic. Here is the text snippet from the book

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.