Forums Register Login

Abt Memory

+Pie Number of slices to send: Send
Hi...

I have learnt from a book that a constructor and a method(both in the same class)might have the same name.And the answer given by the author was:
They both occupy different 'namespaces'so no collision.

1.I want to know what is meant by 'namespaces'.?
2.In Memory where the class,variables,methods are stored?

Thanks
Venkatesh
+Pie Number of slices to send: Send
what a conincidence... someone with exactly your name posted exactly the same question in the intermedidate forum. maybe you two guys could get in contact and discuss the question first?
+Pie Number of slices to send: Send
 

Originally posted by Jan Groth:
what a conincidence... someone with exactly your name posted exactly the same question in the intermedidate forum. maybe you two guys could get in contact and discuss the question first?



Meow! Very catty
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 566 times.
Similar Threads
Query--Abt storing Methods Class Constructors....
Can any one please tell the reason for the String related question.. given here
singleton class or to ahve a static variable inside a class
Passing ref
does String take a fixed size in memory?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:52:26.