INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE
METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN
A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?


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

Post New Answer

More OOPS Interview Questions

Do you know about multiple inheritance?

1 Answers   Motorola,


What do you mean by pure virtual functions?

8 Answers  


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

1 Answers   IBM,


Can you inherit a private class?

0 Answers  


Which language is pure oop?

0 Answers  


What is difference between #define and const?

3 Answers   emc2,


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

0 Answers  


write a program to find 2^n+1 ?

0 Answers   CTS,


Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.

6 Answers  


Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.

0 Answers  


What is friend function?

12 Answers   Wipro,


What is balance factor?

0 Answers  


Categories