Encapsulation
#include <stdafx.h>
#include <iostream>
#include <string>
using namespace std;
/* Encapsulation is the process of combining data and functions into a single unit called class, and
keeps both safe from outside interference and misuse. */
font color="#7f0055">class MyClass
{
private: /* A non-member function cannot access an object
Output:Hello world..!!