adspace


How do abstract classes differ from interfaces?

Answer Posted / Deepali Sharma

An abstract class is a class that cannot be instantiated and is intended to be subclassed. It provides a general blueprint for a set of methods, but some or all of the methods may be unimplemented. An interface in Delphi defines a contract of what a class should do, without providing any implementation. A class implementing an interface must provide implementations for all the methods defined in the interface.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can one prevent a TForm from being moved or resized?

1784


How to Change the owner of a component at runtime ?

1936


How to Change the default width/height of the editor?

1925


How to Determine the last access time of a given file ?

1847


How to Save a QuickReport custom preview to text?

3402


How to Retrieve the line number that a memo's cursor is on?

2021


How to Get the time and date in Universal Time ?

1769


How to Create resource files?

1661


How to Remove drives listed in a TDriveComboBox ?

1953


How to Flush binary file from disk cache to disk ?

2058


How to Retrieving the program that is associated with a given extension?

1714


How to Print in Delphi without using the TPrinter Unit ?

1917