|
-
October 25th, 2010, 09:40 AM
#2
Re: Classes implementation Problem
If I understand correctly, the carInterface (You should call it CarInterface with capital letter), is only a test class for the carDealerShip.
For this simple test, you don't even need to create an instance of carInterface. Just create an instance of carDealerShip, with new operator and play with it.
BTW, calling super at your code was irrelevant because that class wasn't extending anything. By default it extended Object class, so a compilation error should occur because there isn't a constructor of Object class that receives those parameters.
I think you should take a simple Java book and try to read it. It will explain more clearly the concept of oop.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|