I have 3 classes each divided into cpp and header file.
1- MainContentComponent Class ( where components of A and B appear ).
2- Class A ( it has a slider component ).
3- Class B ( it has a label component ).
What I want to do is that I want the slider value to be shown in the label that is in a different class. I know how to make that possible inside a class but not in different classes.
The question is.... How should I inherit from class A in order to get the slider's value and show that in the class B where label is ?
I know that this might be easy but i'm new in juce and c++ too and the problem is that I just don't know how to inherit an object of another class in juce.
I tried by myself but failed because in the end i was able just to show all the components of class A in the class B and this was not what i wanted.
This is just a simple scenario because to be honest i have write alot of other components with multiple classes and when i tried to link their functions i stucked. :/
Anyway, forgive me if this is a noob question, but i want to get a solution for this as soon as possible. :)