It is usually a bad idea to have public get / set functions for every private variable - you may as well have all the variables public.
So, instead you can have constructors that set the variables. Also you can set several variables with one function. If you want to print them all, then do this with one function as well.
You could have a class function that loads the data from the file, that way the function will have access to the private member variables.
If you need to do calculations with variables, then put them into a class function.
Edit: If you do these things, then all of the work is done by the class, which is part of the idea of encapsulation into a class. Your main should do very little apart from creating the objects and calling their functions.
Your constructor looks odd -it has no variables in it, although you are trying to set them. int =2000 doesn't make sense to me. IMO that should not have compiled. You can have types & variable names as a parameter list, set the value of the member variables from the value of the arguments inside the implementation of the function.
Presumably you have a transaction.cpp with the implementation of the functions.
Ok I will change my variables and class names as you suggested and actually it make sense.
Im trying to combine default constructor and normal constructor under one constructor. The book I studied says, I can initialize the variables without specifying the variable name, in the declaration of default constructor.
Yeah I have transaction.cpp with the implementation.