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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T03:07:47+00:00 2026-06-08T03:07:47+00:00

I am confused with the following statement. From the specification: Before the implicitly-declared default

  • 0

I am confused with the following statement.

From the specification:

Before the implicitly-declared default constructor for a class is
implicitly defined, all the implictly-declared default constructors
for its base classes and its non static data members shall have been
implicitly defined.

What i understand is :

implicitly declared default constructor is implicitly defined when the
object is created.

What does the above statement means?. if base class contains explicit default constructor, then the derived class can not have a implicit default constructor?. Kindly clarify, it could be nice if someone provides piece of sample code.

  • 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-08T03:07:48+00:00Added an answer on June 8, 2026 at 3:07 am

    Assume you have classes Base and Derived (which is derived from base).

    Let’s assume both of them have implicitly declared default constructors. When you will create an object of Derived class, the following will happen. First, implicitly-declared default constructor for the Base class will be defined. After that, the same will happen with the implicitly-declared constructor for the Derived class.

    This totally makes sense, because when you create the object of Derived class, the constructor for the Base class gets called first. If it will not be defined by that time, well, something bad will probably happen.

    The same things apply to any class members that have such constructors: those are defined before the class’ own constructor will get defined.

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

Sidebar

Related Questions

I'm confused by the following code: import java.util.ArrayList; import java.util.LinkedList; import java.util.List; public class
I'm confused by the following code: class MyException extends Exception {} class AnotherException extends
I am confused with the following statement . Could anyone help me in understanding
I m bit confused by the following statement in linux device drivers book. http://www.linuxdriver.co.il/ldd3/
I am confused with following shell statement. export changeset=`hg parents | awk -F: '/^changeset:/
Following on from a previous question about sub-selects, I have an SQL statement with
I have the following question: Is the following statement true or false? All logs
I am really confused how to write query for the following statement. How to
I am confused with following string function echo strlen(l\n2); //give 3 in output where
I am little bit confused about following problem & their solutions: i have 2

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.