Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Java only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
Java
need help in anonymous class
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
gsreenathreddy
New Member
Join Date:
Oct 2007
Posts:
40
#1
need help in anonymous class
Oct 16 '07, 07:03 AM
An anonymous class extending a class that has a nondefault
constructor. I am not able to find the difference can any one explain about this.
r035198x
MVP
Join Date:
Sep 2006
Posts:
13225
#2
Oct 16 '07, 07:18 AM
Originally posted by
gsreenathreddy
An anonymous class extending a class that has a nondefault
constructor. I am not able to find the difference can any one explain about this.
Difference between what and what?
Comment
Post
Cancel
gsreenathreddy
New Member
Join Date:
Oct 2007
Posts:
40
#3
Oct 16 '07, 07:29 AM
Originally posted by
r035198x
Difference between what and what?
difference between the normal anonymous class and a anonymous class which has construcor
Comment
Post
Cancel
r035198x
MVP
Join Date:
Sep 2006
Posts:
13225
#4
Oct 16 '07, 07:42 AM
Originally posted by
gsreenathreddy
difference between the normal anonymous class and a anonymous class which has construcor
3 args constructor
[CODE=java]new Person("title", "fullName", 2) {
public void aMethod () {
}
};[/CODE]
Default constructor
[CODE=java]new Person() {
public void aMethod () {
}
};[/CODE]
I'm not sure I get your question though ...
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment