sivakumar k r

Greenhorn
+ Follow
since Jan 17, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sivakumar k r

Hi,

I would like to know as to whether it is possible in java to treat an object as a constant only within a particular method (constant object) (in short prevent modification to its instance variables only within that particular method).


Thanks & Regards,
Shiv
16 years ago
Class C = A + B + delta C.
I wanted to call C's --> A's display.

I didn't want to call display by simply create an object of A and calling the method from that newly created object within C.
17 years ago
Hi Folks,

1) Class A is the Super class and B extends from A
2) Class C extends B
3) The method display has been over-ridden in all the classes.
4) From the method in class C, I wish to call that of B & A.
5) I am able to call that of B using super.

Question: Is there a way to call A's display from C's display directly???

17 years ago
Hi,

I truely understand that there is no need for a destructor in a java class since memory is automatically freed by the garbage collector. I would like to just see some display messages as and when an object actually goes out of scope or gets destroyed.

Is there any method that would perform this kind of an activity in java. Please keep me posted, your efforts are appreciated.
17 years ago