private and protected in c++
protected://means all sub classes and base class can access these functions and variables butcan't be accessed outside classes
public://Pubic methods and variables can be accessed inside and outside of the class
private://only entity class can read and write the variables exeption is friend