Click here to Skip to main content
15,446,510 members
Home / Discussions / Java
   

Java

 
AnswerRe: Dynamic Polymorphism Pin
Sudhanshu_India24-Feb-22 4:26
MemberSudhanshu_India24-Feb-22 4:26 
GeneralRe: Dynamic Polymorphism Pin
Richard MacCutchan24-Feb-22 4:56
mveRichard MacCutchan24-Feb-22 4:56 
GeneralRe: Dynamic Polymorphism Pin
Sudhanshu_India25-Feb-22 0:42
MemberSudhanshu_India25-Feb-22 0:42 
GeneralRe: Dynamic Polymorphism Pin
Richard MacCutchan25-Feb-22 0:51
mveRichard MacCutchan25-Feb-22 0:51 
GeneralRe: Dynamic Polymorphism Pin
Sudhanshu_India25-Feb-22 1:09
MemberSudhanshu_India25-Feb-22 1:09 
GeneralRe: Dynamic Polymorphism Pin
Richard MacCutchan25-Feb-22 1:17
mveRichard MacCutchan25-Feb-22 1:17 
GeneralRe: Dynamic Polymorphism Pin
Sudhanshu_India25-Feb-22 1:20
MemberSudhanshu_India25-Feb-22 1:20 
GeneralRe: Dynamic Polymorphism Pin
englebart11-Mar-22 11:56
professionalenglebart11-Mar-22 11:56 
public void displayCustomerDetails(Address address) {
        System.out.println("Displaying customer details \n***************************");

        System.out.println("Customer Obj: " + this); // same as this.toString()

        System.out.println("Customer Id : " + customerId); //can also use this.customerid

If you add the line above you will see something like:
Customer@4645

Another approach would be to add a printDetails() method to the Address class and then you could call
… getAddress().printDetails() …

QuestionJava programming Pin
Member 1554066219-Feb-22 0:02
MemberMember 1554066219-Feb-22 0:02 
AnswerRe: Java programming Pin
OriginalGriff19-Feb-22 0:03
mveOriginalGriff19-Feb-22 0:03 
GeneralRe: Java programming Pin
MarkTJohnson22-Feb-22 7:23
professionalMarkTJohnson22-Feb-22 7:23 
GeneralRe: Java programming Pin
ramisthand764-Mar-22 23:26
Memberramisthand764-Mar-22 23:26 
GeneralRe: Java programming Pin
OriginalGriff5-Mar-22 0:24
mveOriginalGriff5-Mar-22 0:24 
QuestionJSP -> JavaBean Connectivity Issue Pin
Josh Hebert6-Feb-22 12:40
MemberJosh Hebert6-Feb-22 12:40 
AnswerRe: JSP -> JavaBean Connectivity Issue Pin
Josh Hebert6-Feb-22 12:42
MemberJosh Hebert6-Feb-22 12:42 
QuestionRe: JSP -> JavaBean Connectivity Issue Pin
Richard MacCutchan7-Feb-22 0:44
mveRichard MacCutchan7-Feb-22 0:44 
AnswerRe: JSP -> JavaBean Connectivity Issue Pin
englebart12-Feb-22 14:29
professionalenglebart12-Feb-22 14:29 
AnswerRe: JSP -> JavaBean Connectivity Issue Pin
jschell17-Feb-22 11:26
Memberjschell17-Feb-22 11:26 
QuestionSwitch from VB.Net to Java Pin
Kanel Roath4-Feb-22 4:16
MemberKanel Roath4-Feb-22 4:16 
AnswerRe: Switch from VB.Net to Java Pin
Richard MacCutchan4-Feb-22 5:00
mveRichard MacCutchan4-Feb-22 5:00 
GeneralRe: Switch from VB.Net to Java Pin
Kanel Roath5-Feb-22 2:44
MemberKanel Roath5-Feb-22 2:44 
GeneralRe: Switch from VB.Net to Java Pin
Richard MacCutchan5-Feb-22 2:59
mveRichard MacCutchan5-Feb-22 2:59 
AnswerRe: Switch from VB.Net to Java Pin
Dave Kreskowiak4-Feb-22 6:13
mveDave Kreskowiak4-Feb-22 6:13 
GeneralRe: Switch from VB.Net to Java Pin
Kanel Roath5-Feb-22 2:45
MemberKanel Roath5-Feb-22 2:45 
GeneralRe: Switch from VB.Net to Java Pin
Dave Kreskowiak5-Feb-22 5:34
mveDave Kreskowiak5-Feb-22 5:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.