Week end contest

5
Thanks..... you also a well in OOPS.. Tmrw our CA maths exam.
Thanks to V+ Bye1
It has many errors like:

#include<iostream.h>
#include<conio.h>
void fun()
{
class stud
{
private:
int b;
public:
void get()
{
int b;//more declarations on 'b'
b=10;
}
void display()
{
cout<<"b="<<b;
}
}};//semicolon is misplaced, that is terminated incorrectly.. class shud end-up with ; & not the function
void main()
{
stud o1;
o1.get();// cannot be accessed, since the class is inside another function..
01.display();//here 01 is an undefined symbol, bcos the object is o1, but now accessing using 01, wich isn't initialised.. though it is o1, the function can't be accessed same like the get() function..
getch();
}
totally this program won't run, since it has many errors.. but it makes me to recall the OOPS concept, so thanx..lol..SmileSmileWink
indu, proud to be a member of Vidyarthiplus.com (V+) - Online Students Community since May 2013.
ok well sis

    Week end contest