I dont understand: Why do we have to create objects to - TopicsExpress



          

I dont understand: Why do we have to create objects to represent classes like this: Steamwriter saveclass; saveclass.FileFolder If we can just do this: Steamwriter.FileFolder ---------------------- Sure i understand it if for some reason you have a parameter/variable inside of your parameter or class, but why cant we just use dots instead of objects, like LUA and Scheme? Dont get me wrong here, im not saying objects are useless... Im just saying, why should we use them for a single class?! I get this: Steamwriter.FileFolder.Save1.SystemWrite saveclass; saveclass.finalsave I dont get this: Steamwriter saveclass; saveclass.(parameter/variable) Like seriously... Why do you need to do that? It doesnt cause long line- itis if its just a class either! I DONT UNDERSTAND WHY BJARNE, WHY!
Posted on: Sun, 20 Oct 2013 09:00:17 +0000

Trending Topics



Recently Viewed Topics




© 2015