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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:58:28+00:00 2026-05-22T19:58:28+00:00

I am using a component suite which has many abstract classes. Now I want

  • 0

I am using a component suite which has many abstract classes. Now I want to apply polymorphism but I am getting Error Abstract Class when I create my object.

Should I override all methods which are virtual even if I don’t need it? Are there any workaround or solution?

  • 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-22T19:58:29+00:00Added an answer on May 22, 2026 at 7:58 pm

    In order to make an instance of a class, you need to override all methods that are declared as virtual abstract. Even if you don’t use them.

    If you really want a work around, you can use empty methods. But I won’t recommend that.

    And to add some more information on the subject:

    A method is abstract if it is declared with virtual abstract:

    procedure MyMethod(const AMyParameter: Integer); virtual; abstract;
    

    Trivia: You can even override a method as abstract:

    procedure MyMethod(const AMyParameter: Integer); override; abstract;
    

    You need to override these methods in order to instantiate from that class.

    And you can declare an entire class as abstract:

    type
      TMyClass = class abstract (TMyAncestor)
      end;
    

    You get a warning if you try to instantiate that class.

    The counterpart is a sealed class:

    type
      TMyClass = class sealed (TMyAncestor)
      end;
    

    You get a warning if you try to inherit from that class.

    You can also seal methods, but you need the keyword final for that.

    procedure MyMethod(const AMyParameter: Integer); override; final;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have built a custom component using some containers and a TileList. Now when
Hi when I add a new component using Actionscript I want it to fade
im using the webservice component in my flex app but find im using the
I'm using an image component that has a FromBinary method. Wondering how do I
I used to implement this above title by using iframe but now I dont
I have built a simple website monitoring application using Indy TIdhttp component. I want
Using Delphi 7, I wonder if there is a free component which will collect
I am using Flex Builder for an Actionscript which apparently has a dependency on
I am using HttpCli component form ICS to POST a request. I use an
I upload image files using aspupload component. I was wondering if its possible to

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.