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

Why multiple inheritance is not possible?

0 Answers  


what is difference between c++ language and java language

5 Answers  


What is a class in oop?

0 Answers  


what is polymorpsim? what are its types?

8 Answers  


What is difference between #define and const?

3 Answers   emc2,


Why and when is a virtual destructor needed?

5 Answers  


define oops with class and object

5 Answers   HCL, Tech Mahindra,


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

2 Answers  


What is function overloading and operator overloading?

4 Answers  


Program to check whether a word is the first word of the sentence.

1 Answers  


What is abstraction in oop with example?

0 Answers  


string is a class or data type in java?

3 Answers  


Categories