r/javahelp • u/Karrakarra • Apr 17 '13
somewhat new to java
i understand the concept of objects and creating objects i just dont know how to define an object subclass from scratch...
2
Upvotes
r/javahelp • u/Karrakarra • Apr 17 '13
i understand the concept of objects and creating objects i just dont know how to define an object subclass from scratch...
1
u/CoastalCity Apr 18 '13
If I understand what you're trying to ask: I think this should help out a bit, and it provides a good example.
http://docs.oracle.com/javase/tutorial/java/IandI/subclasses.html
What it comes down to is that you need a class to define a sublcass.
And for a subclass, it needs everything that the original class had but something more.