I am writing some code just for fun and I have a question about class objects. Lets say I have
class Alpha
with member functions
getBeta
getCharlie
getDelta
and so on
now inside main when I want to make calls to these functions is it necessary to create an object to call each individual function such as
Alpha b
b.Beta
Alpha c
c.Charlie
Alpha d
d.Delta
I know this is acceptable but I was wondering if doing this has an advantages or disadvantages over just creating one object to call all class functions like
Alpha a
a.Beta
a.Charlie
a.Delta
any explanation on this will be greatly appreciated. If you don't understand my question I will provide a more concrete example of what I am trying to ask