Encapsulation is the process of adding additional information when data is traveling in OSI or TCP/IP model. The additional information has been added on sender’s side, starting from Application layer to Physical layer. What type of data is in data encapsulation? Data encapsulation, also known as data hiding, is theRead More →

1. Which rule will not affect the friend function? Explanation: Friend is used to access private and protected members of a class from outside the same class. 2. What is the disadvantage of friend function? The major disadvantage of friend functions is that they require an extra line of codeRead More →