I need a little help here with extends.
I have three class
1. EventsClass
2. TicketClass I have the extends to EventsClass
3. BuyerClass. I have the extends to EventsClass
All three class have Accessors and Mutator Methods.
When I'm trying to create the Public buyterTracker
I get an error but it does not tell me what kind of error
Can someone help me please
Thanks
Sandy
I have three class
1. EventsClass
2. TicketClass I have the extends to EventsClass
3. BuyerClass. I have the extends to EventsClass
All three class have Accessors and Mutator Methods.
When I'm trying to create the Public buyterTracker
I get an error but it does not tell me what kind of error
Can someone help me please
Code:
lass buyerTracker extends EventClass{ private String buyername; private String buyeraddr; public [B]buyerTracker(String bn, String ba)[/B] { this.buyername = bn; this.buyeraddr = ba; } // accessors public String getBuyname() { return buyername; } public String getBuyeraddr() { return buyeraddr; } public void setBuyername(String bn) { buyername = bn; } public void setBuyerAddr(String ba) { buyeraddr = ba; } public String toString() { return "(" + buyername + "," + buyeraddr + ")"; } }
Sandy
Comment