how to access the modifiers or print function in the case of the dynamically declared object. Please check the code.
Dynamically declared object
@sounakume
hello Sounak,
u can use -> to call any public function of ur class or to access any public member variable.
for example in ur code if u will do
F->print() then it will call the print function ,
similary by F->model u can access model
1 Like