By default is the class name public, private or protected?
what about the data members? and what about the methods?
class test // by default is the class public,protected or private?
{
int x =1; // by default is x public,protected or private?
int getX() // by default is the method public,protected or private
{
return x;
}
}