Also, first you're naming the class 'dvdplayer' and later you're referring to it as 'DVDPlayer'. Note that Java is case-sensitive, so 'dvdplayer' is not the same as 'DVDPlayer'.
So you are saying you have two different classes, one called "dvdplayer" and the other called "DVDPlayer", and they both have a "recordDVD" method and a boolean property named "canRecord"? That's going to get really confusing in a hurry. I advise you don't do that.
A class can be viewed as a template for an object, it defines behaviors and attributes. If I want to create a new instance of a class (an object), I must identify this object by the identical name found in the class, so - for example
Must be identified by:
See how the class file is named identically to the object instance?
So in your example:
To create an instance of the dvdplayer, you'd have to modify your code:
Now, you're also missing a playDVD() method in dvdplayer - that will need to be added to the dvdplayer class.