What is the real purpose of class – to export data?

Answer

No, the real purpose of a class is not to export data. Rather, it is to provide services. Class provides a way to abstract behaviour rather than just encapsulating the bits.

b.) What things would you remember while making a interface?
- A class’s interface should be sensible enough. It should behave the way user expects it to.

- It should be designed from the outside in.

All cpp Questions

Ask your interview questions on cpp

Write Your comment or Questions if you want the answers on cpp from cpp Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---