answersLogoWhite

0

disadvantage of friend functions is that they require an extra line

of code when you want dynamic binding. To get the effect of a virtual friend,

the friend function should call a hidden (usually protected:) virtual[20]

member function.

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

What r the Demerits of function in C?

Write a merits and demerits of using function in program


What are the merits and demerits of using function in c?

disadvantage of friend functions is that they require an extra lineof code when you want dynamic binding. To get the effect of a virtual friend,the friend function should call a hidden (usually protected:) virtual[20]member function.Read more: Demerits_of_friend_function


What are the disadvantages and advantages of using blekko search engine?

blekko merits and demerits


What are the Merits and Demerits of using HTML?

The merit of HTML is it's simplicity. The demerit is the lack of conditional statements.


What are the merits and demerits of recursion?

Ans: Merits of recursion are: Mathematical functions, such as Fibonacci series generation can be easily implemented using recursion as compared to iteration technique. Demerits of recursion are: Many programming languages do not support recursion; hence, recursive mathematical function is implemented using iterative methods. Even though mathematical functions can be easily implemented using recursion, it is always at the cost of execution time and memory space. The recursive programs take considerably more storage and take more time during processing.


What are the advantage and disadvantage of handphones for students?

Well, if they have something at school you have to do at short notice, you could call their parents or something to tell them, and you don't have to ride the bus or whatever. But you could accidentally get a text from somebody during class and fyou could get in trouble, so... dont turn it on in class.


Merits and demerits of calculator?

Using a calculator can be beneficial because it helps compute math problems very quickly. The downside is that the batteries or power may go out when you need to use it.


What are the merits and demerits of using HTML to develop a website?

The biggest merit of HTML to develop a website is that it is required. You can not display a website without using some type of HTML, even when developing complex .NET pages.


What are merits and demerits of using Facebook?

Merits: Facebook is a powerful platform for connecting with others, sharing information, and promoting businesses. It allows users to stay in touch with friends and family regardless of distance. Demerits: Privacy concerns, spread of misinformation, and addiction are some of the potential drawbacks of using Facebook. The platform has also faced criticism for its impact on mental health and its role in spreading fake news.


What benefits and demerits do embedded style sheet have?

Merits of Embedded Style Sheets: Multiple tag types can be created in a single document. Styles, in complex situations, can be applied by using Selector and Grouping methods. Extra download is unnecessary. Demerits of Embedded Style Sheets: Multiple documents cannot be controlled.


Would there be any Memory issues or execution issues or any merits or demerits of using 1D array of size 'mn' instead of using 2D array of size mxn?

It requires the same amount of memory, so it wouldn't spare anything. Don't do it.


What are the demerits of using pesticides?

it is very harmful to others