Socket Programming Question:

Download Job Interview Questions and Answers PDF

What is encapsulation technique?

Socket Programming Interview Question
Socket Programming Interview Question

Answer:

Hiding data within the class and making it available only through the methods. This technique is used to protect your class against accidental changes to fields, which might leave the class in an inconsistent state.

Download Socket Programming Interview Questions And Answers PDF

Previous QuestionNext Question
What is the difference between a NULL pointer and a void pointer?Socket Programming Interview Questions