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 use of classes in c++;

2 Answers   HCL,


Whats oop mean?

0 Answers  


What is the difference between a mixin and inheritance?

0 Answers  


i got a backdoor offer in process global,Bangalore..Can i work with it?

0 Answers  


What is virtual destructor? Why?

3 Answers   Agile Software, College School Exams Tests, CSC,


Describe what an Interface is and how it?s different from a Class.

7 Answers   Spinsys,


Program to open a file with First argument

1 Answers   TCS,


What is a mixin class?

4 Answers  


What is command routing in MFC

1 Answers   GE,


What is the difference between the C & C++?

9 Answers   HCL,


difference between static and non-static variables?

2 Answers  


What are the two different types of polymorphism?

0 Answers  


Categories