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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:48:55+00:00 2026-05-19T16:48:55+00:00

I read the following statements from BRUCE ECKEL’S THINKING IN C++ 1.Access specifier are

  • 0

I read the following statements from BRUCE ECKEL’S THINKING IN C++

1.Access specifier are part of structure and do not affect the object
created from “structure

Doubt:As we know the access blocks are not stored contiguously,
aint it that access specifier change the way object layout in memory

2.All of the access specification information disappear before the program is run
(during compilation).In a running program,object become the “region of storage”
and nothing more..thus we can break all the rules and access the memory directly
as you can in c

Doubt:Does it mean one can even access private member directly?please help me to comprehend the above statement

3.c++ is design to be pragmatic, not to aspire to abstract deal

Doubt:whats a meaning of being pragmatic?

  • 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-19T16:48:56+00:00Added an answer on May 19, 2026 at 4:48 pm

    1) Access specifier are part of structure and do not affect the object created from “structure”

    Wrong actually, the order (in the layout) of data members within the same access specific (public, protected or private) is dictated by their order in the code, however no order is specified for data members with different specifiers.

    class Foo
    {
    public:
      int a;
      int b;
    protected:
      int c;
      int d;
    };
    

    The only thing we know is that a must come before b and c must come before d. abcd, acbd, acdb, cabd, cadb and cdab are all possible.

    2) All of the access specification information disappear before the program is run
    (during compilation).In a running program,object become the “region of storage”
    and nothing more.. thus we can break all the rules and access the memory directly
    as you can in c

    The information is only used during compilation, but then compilation is what generate the running code. Therefore compilation ensures that you won’t access private members. However, since direct memory manipulation is permitted, you could effectively access private members or functions if you wish, it’s just highly error-prone to try and do it manually.

    3) C++ is designed to be pragmatic, not to aspire to abstract the real

    Pragmatic means that it’s geared toward real use, with little consideration for purely theoretic arguments. Languages built from CS theory would include Haskell for example, which has an extremely sound mathematical background; on the other hand C++ has accumulated features that were deemed useful by its users.

    Also, C++ does not hide the low-level details from you (like memory management). Good C++ code generally leave it up to the compiler and use idioms to try and abstract it (somewhat), but if necessary you can always get closer to the metal (even including Assembly code directly)… and sometimes (like memory management) you do have to pay attention to what you’re doing.

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

Sidebar

Related Questions

I've read the following post. My Code looks exactly the same, but does not
Hello I have read following php statement from a blog but I am unable
I recently read the following overflow post: Hidden Features of C# One of the
I am trying to read the following xml stream but am really struggling. <channelSnapshot
I'm trying to read the following Xml document as fast as I can and
So I have the following read and write file program for an Array. How
First of all let me tell you that i have read the following questions
I need to write a simple program for work that does the following: read
Imagine the following: you read in a string with scanf() but you only need
What are the sql exceptions will thrown by using the following function: Read Update

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.