Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Abstract classes useful?
Message
From
03/06/2008 03:05:30
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
 
To
03/06/2008 02:23:49
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01320973
Message ID:
01321211
Views:
21
>However, you've got a point that adding props and method is often done in concrete classes. Well, if the programmer can live with it... In small projects, mostly prototyping, that have to be done quick and dirty, I still work that way. But usually I like the splitted approach a whole lot more. I know where I have to look for in my projects and my co-worker too ;-)

From the "classical OOP" POV (as seen from java for instance) adding *implemetation* specific things is quite ok, but that should be done as "protected" as these internals are not part of the interface. My take on abstract classes is that they grew half-automatically from the rule that each method of an interface must be specified/implemented - so what good would it have to fill methods in the class specifying the interface ? I have read somewhere that Anders Hejlsberg wants to add a mechanism for "default method implementation" in interfaces - so there you have *somebody* <bg> not seeing the need for empty classes even in C#.

regards

thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform