RobJ is a resistor ( rvalue ) with a default name, R . Rob will be named after the rvalue , and can be used in real-world applications. robj is a resistor class that takes in an rvalue and rname. robj only accepts scalars, with the exception of numbers. This means you are free to create any number of resistors, have them have different physical resistance values, or assign different names to them.