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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:47:47+00:00 2026-05-21T05:47:47+00:00

Can somebody please explain me clearly by using some nice examples how c++ class

  • 0

Can somebody please explain me clearly by using some nice examples how c++ class is useful and why it is a good programming practice. I read a lot about class, did some programming in c++ using some classes but still I couldn’t be clear why class are needed and how would they make the code more robust and readable.

Thanks!!!!!

  • 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-21T05:47:47+00:00Added an answer on May 21, 2026 at 5:47 am

    When you type a script or 20 lines of code or 100 lines of code it’s no big deal.

    When you get to millions, you start to need a way to actually visualize your code. You need to be able to talk of different sections and how they interact.

    When you look at a long procedure, how is it organized? When you have 20 functions, which ones correspond to what data? Now document and remember it so the next time you look at the code you’ll be able to get back to where you were right away.

    Objects allow you to group functionality with the data it relates to. It lets you find the functionality you need quickly. Once you are used to it, it’s hard to imagine why you would code without it. I’m not sure how you’d diagram a design to show it to someone else without OO–Flow charts? Really?

    If you design your non-OO code Very Well with private variables (private to this file) and functions that relate to that data you can get some of this organizational effect, but it’s messy and there is a lot of overhead. Plus it’s very easy for someone who doesn’t quite “Get” OO to send the entire codebase spiraling to code-hell.

    It’s a very comfortable, logical sensible way to organize your code and data.

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

Sidebar

Related Questions

I'm beginner in programming. Can somebody please explain (by simple words) what do I
I'm running a Django app using FastCGI and lighttpd. Can somebody explain me what
Can somebody please explain how to use macros in x86 assembly coding
Can somebody please explain to me how to properly test Postgres DB errors, particularly
Can somebody please explain this to me: I have a label and I want
Can somebody please explain how to find out if full text search is enabled
Can somebody please explain to me how I can convert 2009-10-27 14:36:59.580250 into 27.10.2009,
Can somebody please explain what the inherit keyword means in CSS and how it
Can somebody please explain what does this warning mean: undefined reference to 'WinMain@16' ?
Can somebody please explain why a while statement like while (ch != '\n' ||

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.