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
Expand|Select|Wrap|Line Numbers
- lass buyerTracker extends EventClass{
- private String buyername;
- private String buyeraddr;
- public buyerTracker(String bn, String ba) {
- 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