how does object programming work?
- by venom
Hello, I am not sure about some things in oop.
If I have Class1, which has some private field, for example private Field field1, and make
getField1(){return field1;}
then I have some class with constructor
public Class2(Field field){someMethod(field);}
And then I call constructor of Class2 in Class3 like:
Class2 cl = new…