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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:38:21+00:00 2026-05-10T18:38:21+00:00

I was just wondering, since the sealed keyword’s existence indicates that it’s the class

  • 0

I was just wondering, since the sealed keyword’s existence indicates that it’s the class author’s decision as to whether other classes are allowed to inherit from it, why aren’t classes sealed by default, with some keyword to mark them explicitly as extensible?

I know it’s somewhat different, but access modifiers work this way. With the default being restrictive and fuller access only being granted with the insertion of a keyword.

There’s a large chance that I haven’t thought this through properly, though, so please be humane!

  • 1 1 Answer
  • 3 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. 2026-05-10T18:38:21+00:00Added an answer on May 10, 2026 at 6:38 pm

    In my opinion there should be no default syntax, that way you always write explicitly what you want. This forces the coder to understand/think more.

    If you want a class to be inheritable then you write

    public extensible class MyClass 

    otherwise

    public sealed class MyClass 

    BTW I think the same should go with access modifiers, disallow default access modifiers.

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

Sidebar

Related Questions

Just wondering is it possible to build CLI app that can be run from
I'm just wondering whether it's possible to create an attribute called alias using FactoryGirl,
Just wondering how to check if a PHP session exists... My understanding is that
I was just wondering whether anyone knows why the property FileInfo.Length is of type
Does a plugin exists for Python/Django into Dreamweaver? Just wondering since Dreamweaver is a
I was just wondering if jQuery can be considered as a language, since it
just wondering if anyone else has a better suggestion that what I'm coming up
Just wondering if they are the same thing since some programmers say scope while
Just wondering. I have a page in Jquery Mobile which uses a popup that
This is just something that's been puzzling me ever since I read about iterators

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.