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
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.
1
u/Cronaldo97 Noobie Programmer Apr 19 '13
You could go through all the lectures of my professor! :D http://www.cs.uwlax.edu/~riley/CS120S13/lectures.html
2
u/[deleted] Apr 18 '13
I recommend reviewing Oracle's "Creating Objects" page: http://docs.oracle.com/javase/tutorial/java/javaOO/objectcreation.html