Access specifier's and classes and objects?
- by TimothyTech
Alright, im trying to understand this,
so a class is simply creating a template for an object.
class Bow
{
int arrows;
};
and an object is simply creating a specific item using the class template.
Bow::Bow(arrows)
{
arrows = 20;
}
also another question, public specifiers are used to make data members avaible in objects and private specifiers are used to make data memebers only avaialble inside the class?