Java Programs
Name:
Anonymous
2012-12-30 13:04
Guys, little help here, can someone show me a Polymorphism and Herency program coded in Java?
I need to finish a proyect of mine and would be greatful for a finished example.
Name:
Anonymous
2012-12-30 15:29
There's no such thing as Herency, faggot.
Name:
Anonymous
2012-12-30 21:51
You mean Inheritance. Something about Parent classes and subclasses.
Name:
Anonymous
2013-01-01 14:29
Inheritance:
public class YourClass extends YourOtherClass{
...
}
Polymorphism:
YourOtherClass foo=new YourClass();
Name:
Anonymous
2013-01-01 18:34
Can someone show me a finished example?
Name:
Anonymous
2013-01-01 21:16
BaseClass.java:
public class BaseClass {
public void exampleMethod(){
System.out.println("this is an example method");
}
}
Example.java:
public class Example extends BaseClass{
public static void main(String[] args){
BaseClass foo=new Example();
foo.exampleMethod();
}
}
Name:
Anonymous
2013-01-05 11:30
"Can someone show me a finished example?"
a.k.a do it for you?
Name:
OP
2013-01-05 13:44
I have the programa already made. I just need to finish the interface.
Name:
87u
2013-01-05 17:05
Newer Posts