Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and SQL at the same time
Message
From
17/01/2019 12:37:09
 
 
To
16/01/2019 14:30:20
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01664796
Message ID:
01665500
Views:
56
>>Classes are for when there's data that must travel with the code. No point using a class for a bunch of functions that don't share data.
>
>In OOP "data" refers to the properties of the object. These could also exist in an abstract class.
>

Embolded: Nope.

Properties CANNOT exist in an abstract class, as the abstract class (at least in the languages that have such a keyword as Java and C#, signifying at least an abstract member or a compiler check that only non-abstract decendants can be instantiated) cannot be instantiated via new or corresponding ways.

To be nit-picking correct in such languages you can define properties in the abstract class, but they EXIST only in the instantiated object, which is of a different class. In a language like vfp having no inner concept of "abstract class" you can comment/name a class as "abstract", but as soon as you instantiate it, it is no longer abstract in the OOP sense ;-)))

Or you could say, nothing exists in the "Blueprint"
Previous
Reply
Map
View

Click here to load this message in the networking platform