C
crouse
Is it bad programming practice to pass a class as an argument to a
function of another class in order to access the functions of the
passed class within the other class. Outside of the typical get and
set methods which I believe are typical .For example,
class A {
func1 ( B b ) {
b.func1();
}
}
class B {
func1 ()
}
.....
a call is made at some point to -> a.func1( B b );
Thanks a Million,
EVAC
function of another class in order to access the functions of the
passed class within the other class. Outside of the typical get and
set methods which I believe are typical .For example,
class A {
func1 ( B b ) {
b.func1();
}
}
class B {
func1 ()
}
.....
a call is made at some point to -> a.func1( B b );
Thanks a Million,
EVAC