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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:02:59+00:00 2026-05-13T06:02:59+00:00

When I learned about abstract classes is said WT(H*)!!! QUESTIONS: What is the point

  • 0

When I learned about abstract classes is said WT(H*)!!!

QUESTIONS:

  1. What is the point of creating a class that can’t be instantiated?
  2. Why would anybody want such a class?
  3. What is the situation in which abstract classes become NECESSARY?

**if you know 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-13T06:02:59+00:00Added an answer on May 13, 2026 at 6:02 am
    1. most commonly to serve as a base-class or interface (some languages have a separate interface construct, some don’t) – it doesn’t know the implementation (that is to be provided by the subclasses / implementing classes)
    2. abstraction and re-use
    3. when the base-class can provide no meaningful default-implementation for a method (but allowing subclasses to re-use the non-abstract parts of the implementation; any fields, non-abstract methods, etc)

    For example:

    public abstract class Stream { /* lots of code, some abstract methods */ }
    

    What the heck is a stream by itself? What kind of stream? a stream to a file? a network? a memory buffer? Each may have different and unrelated ways of reading / writing, but provide a common API. It makes no sense to create just a Stream, but via the abstract class, you can code to the Stream API without knowing the details:

    Stream s = CreateStream(...); // I don't *care* what kind of stream
    s.Write(new byte[] {1,2,3,4,5});
    s.Close();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just learned about ngrep , a cool program that lets you easily sniff
I've got an application that just shipped. Since I wrote it, I've learned about
So we learned a bit about the Turing Test in my AI class. This
I'm in a class where we just learned about these design patterns. However I
I recently learned about the , operator and the fact that it introduces a
I just learned about java.sql package . It uses Class.forName() to dynamically load the
My boss just told me that he learned about fast VB6 algorithms from a
I learned about Microsoft BizSpark the other day and started the sign up process.
I just learned about how the Java Collections Framework implements data structures in linked
I recently learned about the basic structure of the .docx file (it's a specially

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.