About objects

Is dere is any limit in number of objects of a class ?
plz help me !!
if yes,, thn why and how much ?
No.
closed account (Dy7SLyTq)
well yes. its because each takes up some memory and you only have so much. it depends on your ram, os, hdd, compiler, and implementation
But that's technically a no, since it all depends on the computer parameters. We can still say it is unlimited as long as you are not out of memory XP
closed account (Dy7SLyTq)
no... we can say its not usually going to be a problem but we cant say unlimited because its not anywhere close to that
Well, that depends on OP's perspective. If he meant the question to be according to the programming language/compiler he uses, then it really isn't restricted at all. And in terms of sense, he has probably meant that.
closed account (Dy7SLyTq)
no... it isnt a perspective. it is not unlimited. period
Prove it :P
DTSCode wrote:
no... it isnt a perspective. it is not unlimited. period


One may say that there is no limit imposed by the standard on the number of objects held within an instance of a class. Therefore you might say from the perspective of the standard, the number of objects held by an instance of a class is unlimited. Personally, I prefer that perspective to your own.
closed account (Dy7SLyTq)
its not a perspective. you cant have unlimited memory. as i have stated its highly unlikely but to have unlimited instances is to have unlimited memory
DTS: the point is, the language itself does not pose a limit. But rather the hardware does.

So from the perspective of the language, there's no limit. From the perspective of the hardware, there is.

But this is a really stupid thing to argue about anyway.
closed account (Dy7SLyTq)
But this is a really stupid thing to argue about anyway.


ill agree with that

@cire: i misread the standard part. so yes i can see that. however i do feel like cplahplah was trolling if im not mistaken
Me? Trolling? How? I gave the OP a brief one word short answer, yet you started arguing. I don't mind if you say what you're thinking about, but you really can't say I was trolling there. Anyways, sorry if I caused any trouble or confusion OP. The rightest answer:
the point is, the language itself does not pose a limit. But rather the hardware does.

So from the perspective of the language, there's no limit. From the perspective of the hardware, there is.
I'm sure this is why so many car rental companies have gone out of business after advertising unlimited miles with a rental. I imagine those people who rent are awfully disappointed to discover they're still affected by aspects of regulatory traffic laws and actual physics that limit the unlimited miles they can put on the car.
Last edited on
Lol, what an example that was. But these rental companies were not actually lying after all.
closed account (Dy7SLyTq)
yeah technically from the specifications theyarent lying. its the wear and tear of the hardware
And technically, we have gone waaaay off topic now.
Last edited on
Topic archived. No new replies allowed.