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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:55:14+00:00 2026-05-28T01:55:14+00:00

Because it is not really* possible to create abstract classes in objective-c I was

  • 0

Because it is not really* possible to create abstract classes in objective-c I was wondering if anyone could tell me why the creators of objective-c didn’t add this feature to the language.

*of course there are a few workarounds to create a -kind of- abstract classes but thats not what i mean.

  • 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-28T01:55:15+00:00Added an answer on May 28, 2026 at 1:55 am

    If you mean why you can’t declare a class abstract rather than just implement it as an abstract class, I suppose it’s because it doesn’t interact so well with Objective-C’s extremely dynamic, types-optional, Smalltalky message-passing style (Smalltalk doesn’t have built-in support for declaring them either). For example:

    • You might not know what class you’re sending alloc or init to, so it would be a pretty weak guarantee

    • Subclasses might still need to pass alloc and init up the class hierarchy, so we’d need to allow that, making it an even weaker guarantee

    • Categories modify classes at runtime, making it the abstract contract weaker still

    In the end, you’d wind up with a keyword that just did roughly the same thing we do now to implement abstract classes (i.e. maybe override init to bail if the receiver isn’t a subclass).

    Type modifiers that just specify a contract become more useful the more you rely on the static type system — but Objective-C was designed not to rely on the type system all that much, so putting the contract in the type system is less useful than in some other languages.

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

Sidebar

Related Questions

This is not really a question because I just solved the problem, but I
I know the following is not possible because the Enumeration's type has to be
I'm not sure this is even possible, but I would really like to be
I've always had a thing for C++/CLI. Maybe because not many developers use it...
I am looking to improve the performance of my site, not because it is
This question is mostly academic. I ask out of curiosity, not because this poses
The following method does not work because the inner block declares a variable of
It's very strange because phpmyadmin is not in document root, but still can visit
I have this question because I am not familiar latest generation of MS VS
I ask this question because I'm not able to test it at the moment.

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.