I was reading about Java beans, and all the examples I came across use standard Java types (String, int, etc) for class variables. Can I use variables of my own class type in a bean?
Eg.
class MyBean implements java.io.Serializable{
MyObj mo;
public MyBean(){}
//Getter and setter for mo
}
(Writing this from a phone, so apologize for no formatting)