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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:54:21+00:00 2026-06-10T02:54:21+00:00

As the title states: when I derive a class in CPP, that’s pretty much

  • 0

As the title states: when I “derive” a class in CPP, that’s pretty much the same thing as “extending” a class in Java, yes?

  • 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-10T02:54:23+00:00Added an answer on June 10, 2026 at 2:54 am

    Yes. Since Java doesn’t have multiple inheritance, it can be a bit more verbose with the language. Java’s class D extends B is class D : public B in C++, but in C++ you can also have in­her­itances like struct D : B1, private B2, protected B3.

    Similarly, in Java super refers to the (unique) base subobject, and understandably there is no com­par­able concept in C++ (you have to specify the base by name).

    (Note that there’s also implements in Java for dedicated interface classes. Since those have no mem­bers and only abstract functions, there’s no need to refer to those interface bases from the derived (i.e. “implementing”) class.)

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

Sidebar

Related Questions

Well, the title pretty much states it. I want to be able to draw
The title of the question pretty much states the problem. Is it possible?
Pretty much as the title states, I'm grabbing some values from a Db, which
As the title states, I am using devise. I came upon this link that
As the title states, I am looking for something, that will help me automate
Just what the title states; the term appeared in 'Java Concurrency in Practice'. I
As the title states, I have a function that causes a div to fadeOut
As the title states, I'm wondering if it's possible to selectively choose tables that
Simple as the title states: Can you use only Java commands to take a
As the title states, I have a session variable that is set during a

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.