Inherited from what? A Shape class?
I can help you out if you're willing to spend a lousy five or six bucks on a
used book. Go to Amazon and buy a copy of the C# Class Design Handbook
published by Wrox. Just plug in your words and you're all set with an entire
treatise that covers the spectrum of OOP as it pertains to its fundamental
unit; the class.
Then you can write the next AutoCAD :-)
Answer for extra credit: minimum number of vectors required to initialize a
3D primitive object which is derived from the least number of instances of
the Line class as possible. Its a two part question: What is the least
primitive object and what are its properties?
You can plug thoughts like that into the C# Class Design Handbook and get
insight out the other end. For less than ten bucks.
"Norbert Pürringer" <th*******@graffiti.netwrote in message
news:48**********************************@z66g2000 hsc.googlegroups.com...
Hello,
do you know an URL for me where to find a sample for an abstract
Geometry class, where classes like Point, Line, Area are inherited.
This sample should explain OOP (what is inheritance, polymorphism,
encapsulation, ...)
Thank you,
Norbert