Difference between PUB and PRI
karakiko
Posts: 11
Hello Forum ,
I am curious to know the difference between PUB and PRI , the only·difference i know that PRI methods can only be accessed from inside of the object . Is there more difference?
Thanks
I am curious to know the difference between PUB and PRI , the only·difference i know that PRI methods can only be accessed from inside of the object . Is there more difference?
Thanks
Comments
An example might be an object that keeps track of the number of changes made. There might be a number of "Update Functions" that are Public, and each of these may call a separate Private funcation that updates the "Change Count". You wouldn't want the "Change Count" function to be called from "the outside world". (possibly not the best example, but I hope you get the idea)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
Click here to see my Nomad Build Log
There are some other minor differences.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Prop Info&Apps: ·http://www.rayslogic.com/propeller/propeller.htm
My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Forums RSS Feed!
Gadget Gangster - Share your Electronic Projects