Hello There, Guest! RegisterLogin with Facebook
Login with Facebook

New Anna University Nov / Dec 2016 Examination Important Questions
New Anna University (UG / PG) Nov/Dec 2016 and Jan 2017 Theory , Practical Exam Timetable
>>> Anna University Sixth Semester Question Bank Collection (R2013) ECE,MECH,CSE,IT,EEE,CIVIL,EIE
>>> Anna University November/December 2015 Examination Question Papers
>>> Anna University Study Materials for all Departments
>>> Anna University Question Papers : April May June 2015 Question Papers | Nov Dec 2014 and Jan 2015 Question Papers

Register or Login to Submit Study Materials , Shoutbox and also to access Many Features !!

Vidyarthiplus Shop :: Handwritten Premium Lecture Notes
Share your Study Materials with us
Share your Study Materials with us : Click Here

Week end contest
#4

Thanks..... you also a well in OOPS.. Tmrw our CA maths exam.

Thanks to V+ Bye1


Reply
#5


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.


Reply
#6

ok well sis



Reply

Subscribe


Recommend on Google