Note: (Restricted functionality due to obvious reasons!)
Minimal Code ( Raw-View ) :
#include<iostream.h>
#include<conio.h>
class Human
{
public :
int age , height ; // height=0; : gives compilation error ::
//Because NO Object is created.. So no physical memory reservation.
Human(){ cout<<"\nI am a HUMAN\n";}
void speak(){
cout<<"\n Blah blah !!...\n My Height is : "<<height;
}
}h1;
void r1(){
h1.speak(); // -> Accessible as h1 is global variable
// h2.speak(); // -> InAccessible as h2 is local variable of main()
}
void main(){
Human h2;
//h1.age = 32;
h2.age = 10;
h1.speak();
h2.speak();
r1();
}