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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:12:31+00:00 2026-06-06T18:12:31+00:00

I was reading Design Patterns: Elements of Reusable Object-Oriented Software , (specifically the chapter

  • 0

I was reading “Design Patterns: Elements of Reusable Object-Oriented Software“, (specifically the chapter about the prototype design pattern) and it stated that…

“Prototype is particularly useful with static languages like C++ where classes are not objects, and little or no type information is available at run-time.” (pg 121)

(emphasis mine)

I had always thought that classes were synonymous to objects, and I’m confused as to what this statement means. How are classes not objects, and why does it matter if a language is static?

  • 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-06T18:12:33+00:00Added an answer on June 6, 2026 at 6:12 pm

    In C++, this declares a class:

    class A {
    public:
      int a;
    };
    

    whereas this declares an object:

    A a;
    

    One cannot interrogate a class a run-time, as one can interrogate an object. It makes sense to say, “object ‘a’, what is your address? Please invoke operator+. etc.” In C++, with its static typing, it makes no sense to say, “Class A, what is your list of members? Please add a new member, “b”.”

    In other languages (Python comes to mind), one can manipulate classes in this way, because each class is also an object. In addition to serving as a template for objects, the class itself is an object — it can be printed, modified, etc.

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

Sidebar

Related Questions

I'm currently reading, Design Patterns:Elements of Reusable Object-Oriented Software by Erich Gamma and others.
I am reading a book on design patterns (an old edition) Pattern-oriented software architecture
I'm currently reading Head First's Object Oriented Analysis and Design. The book states that
A very basic question, but after reading the Design Patterns: Elements of reusable OO
In reading about design patterns I read that the advantage of strategy over template
Currently, I'm reading a lot about Software Engineering, Software Design, Design Patterns etc. Coming
One stumbles upon this phrase when reading about design patterns. But I don't understand
I've been doing some reading about design patterns and wanted some perspective. Consider the
I'm reading some books about Design Patterns and while some describe the relation between
So I started reading this book: http://www.amazon.com/Cocoa-Design-Patterns-Erik-Buck/dp/0321535022 On chapter 2 it explains about the

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.