Greetings I am getting this problem "Expression must have class type" -the code is something like this it's made to protect constant values-
Class.h
Class Myclass{
    Public: My class();
    Private: 
    const int value;
};
Class CPP
Myclass::Myclass()
   :value(5)
   {}
Main
#include "Myclass.h"
#include <iostram.h>
int main()
{
    Myclass Smth();
    int five=Smth.value; // error line  
                         // Smth is underlined       
    return(0);
}
thanks
 
     
     
    