search for: startheight

Displaying 1 result from an estimated 1 matches for "startheight".

2008 Feb 05
2
help with oop in R - class structure and syntex
...R equivalent of the Java Bicycle class above? Also, in Java, inheritance is done like this: public class MountainBike extends Bicycle { // *the MountainBike subclass has one field* public int seatHeight; // *the MountainBike subclass has one constructor* public MountainBike(int startHeight, int startCadence, int startSpeed, int startGear) { super(startCadence, startSpeed, startGear); seatHeight = startHeight; } // *the MountainBike subclass has one method* public void setHeight(int newValue) { seatHeight = newValue; } } What would be the R o...