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...

OOPS Interview Questions
Questions Answers Views Company eMail

if u write a class do u write Assignment operator and copy constructor

Siemens,

1 6038

how do u initialize the constant variables

IBM, Siemens,

5 11778

when my application exe is running nad i don't want to create another exe what should i do

HCL,

2 6023

what is the use of mutable key word

HCL,

3 9937

different types of castings

Siemens,

3 12336

the difference between new and malloc

Siemens,

5 14804

difference between overloading and overridding

11 16343

why destructor is not over loaded?

5 18827

Why many objects can working together? How objects working togetherM I want to see example code.

2 4958

suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?

EA Electronic Arts,

3 9546

Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?

EA Electronic Arts,

4 13926

i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

Infosys,

3 13644

i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????

4 6346

sir plz send me a set of questions that been frequently held in written examination during campus selection.

TCS,

2010

Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation

TCS,

2073


Post New OOPS Questions

Un-Answered Questions { OOPS }

What are the 5 oop principles?

1073


Can we override main method?

1123


What is the real life example of polymorphism?

1114


Give two or more real cenario of virtual function and vertual object

2289


What do you mean by variable?

977


Is react oop?

1016


can inline function declare in private part of class?

4306


What is encapsulation in simple terms?

978


What is oops and why we use oops?

995


What is inheritance and how many types of inheritance?

1043


What is coupling in oops?

1069


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

2191


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

2227


What is methods in oop?

929


What does and I oop mean?

1107