using the Access Specifier Private in Classes

This video tutorial explains the usage of private access specifiers in classes.
You will learn how to use private as access specifier in classes, how to access a private member and member function in your program in detail with example.

source code for this tutorial

#include <iostream>
#include <string>

using namespace std;

class Human{
    int age;
    int getAge(){
        return age-5;
    void displayAge(){
    cout << getAge() << endl;

    void setAge(int value){
    age = value;

int main()
    Human anil;
    return 0;