You need to use the correct syntax to access a function:
shivam.get();
shivam.set();
Also it is not generally the best idea to have class functions getting console input. It is better to do that at the main level and then use
set
to pass the value into the object, and
get
to return it to the caller.