Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


class CTest
{
public:
void someMethod()
{
int nCount = 0;
cout << "This is some method --> " << nCount;
}
};

int main()
{
CTest *pctest;
pctest->someMethod();
return 0;
}

It will executes the someMethod() and displays the value
too. how is it possible with our creating memory for the
class . i think iam not creating object for the class.
Thanks in Advance...
Prakash


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More OOPS Interview Questions

What is the full form of oops?

0 Answers  


Why is polymorphism used?

0 Answers  


What is friend function?

12 Answers   Wipro,


Where You Can Use Interface in your Project

0 Answers   KPIT,


Is react oop?

0 Answers  


why we call c++ is object oriented lanaguage

7 Answers   HCL,


wht is major diff b/w c and c++?

10 Answers  


why freind function takes more parameter than normal member function in c++?

1 Answers   IBM,


How oops is better than procedural?

0 Answers  


IN PROGRAMING LANGAUGE A C++ IS PURELY OBJECT ORIENTED OR NOT?

2 Answers  


Why interface is used?

0 Answers  


Why do we use inheritance?

0 Answers  


Categories