Hi,
Im wondering if someone could clarify a problem im having.
Basically im trying to figure out how i can go about having a Class A object as an attribute of Class B,while still using Class A's functions.
For example if have a class called clockRadio.In turn i have another class called alarm,
Alarm has the functions
- set time.
- view time
Is it possible for me to create an object of clockRadio and use class Alarms functions through this object.
Im sorry if this does not make any sense but im very confused on this and any help would be greatly appreciated.