• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 335
  • Last Modified:

Abstract class

Dear all

  Abstract class can have  no constructor .
What is the reason behind  in that?

0
ravisiva
Asked:
ravisiva
1 Solution
 
Lee_NoverCommented:
you instantiate a descendant and don't care about the implementation
check TStrings and TStringList
think of abstract classes as of interfaces without reference counting
0
 
FeralCTOCommented:
An abstract class never gets instantiated. Therefor, no Constructor. Abstract classes are very useful as conceptual abstractions of responsibility, and serve as super classes to other concrete classes that do get instantiated.
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now