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 type of question are asked in thoughtworks pair programming round ?

0 Answers   Thought Works,


What is encapsulation oop?

0 Answers  


What do you mean by abstraction?

0 Answers  


What is virtual constructors/destructors?

4 Answers   IBS,


What is a friend function & its advantage?

1 Answers   MIT,


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

0 Answers  


What are the 4 pillars of oop?

0 Answers  


WRITE A SIMPLE C++ PROGRAM TO SWAP TWO NOS WITHOUT USING TEMP

2 Answers  


What is encapsulation process?

0 Answers  


what are the ways in which a constructors can be called?

0 Answers  


Which method cannot be overridden?

0 Answers  


What is multiple inheritance?

9 Answers   TCS,


Categories