• Welcome to Jose's Read Only Forum 2023.
 

Object Oriented Programming

Started by Kent Sarikaya, July 21, 2007, 09:41:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

José Roca

 
Quote
Would like to know how you used/find out about .unwrap ??

http://msdn2.microsoft.com/en-us/library/system.runtime.remoting.objecthandle.unwrap.aspx

Quote
How about creating such classes where the constructor has overloads?

I don't have information about that.

Kent Sarikaya

Seeing how virtual tables are the key to setting up classes, would adding inheritance be another virtual table with pointers to the parent?

I have no idea how polymorphism would be handled and how the code would be to handle it. Or would that be automatic?

For example:

Parent Class
       First Child Class
                 First Grand Child Class
                           when a method is called, it looks here, if it finds it, it uses it. If not, go up to First Child and if not there, then on to the Parent Class.

So is polymorphism then a bonus for having inheritance?

Kent Sarikaya

#32
Here is an interesting article on oop simulation with freeBasic.

This is not that far from being as easy to use as in other OOP languages. If you just want to see the whole program, just scroll to the end of the article.
As you can see it is very clean.

http://www.shnetworks2.net/~asciiwor/pcopy/issue40/#ext_type