Statistics: Posted by Guest — Tue Jun 21, 2005 1:18 am
Statistics: Posted by Nodtveidt — Mon Jun 20, 2005 7:40 pm
Code:
TYPE Album name AS STRING caption AS STRING FUNCTION set_data(n$, c$)END TYPEFUNCTION set_data(n$, c$) ' "this" is used because the function this->name = n$ ' is specific to the variable declared this->caption = c$ ' as type Album.END FUNCTIONso..DIM MyAlbum AS AlbumMyAlbum.set_data("my name", "my caption") or MyAlbum->set_data("my name", "my caption")
Statistics: Posted by Guest — Sun Jun 19, 2005 1:49 am
This is what how I have come to understand as OOP. However I suppose my question delt with OOP "commonly misunderstood." Simply, manipulating a TYPE's variable with TYPE specific functions.Rather dealing with Classes, Virtual Functions, and PolyMorphism. That's what makes Object Oriented Programming, OOP.
Statistics: Posted by Exodus — Sat Jun 18, 2005 1:31 am
Code:
TYPE Album name AS STRING caption AS STRING FUNCTION set_data(n$, c$)END TYPEFUNCTION set_data(n$, c$) ' "this" is used because the function this->name = n$ ' is specific to the variable declared this->caption = c$ ' as type Album.END FUNCTIONso..DIM MyAlbum AS AlbumMyAlbum.set_data("my name", "my caption") or MyAlbum->set_data("my name", "my caption")
Statistics: Posted by Exodus — Sat Jun 18, 2005 1:16 am
Statistics: Posted by Levi — Sat Jun 18, 2005 1:04 am
Statistics: Posted by lurah- — Sat Jun 18, 2005 12:15 am
Statistics: Posted by Exodus — Sat Jun 18, 2005 12:10 am