Question: what is the difference between virtual class and friend class?
Answer: Friend Class: When an entire class is declared as a friend of another class. For example, Class A is declared as a friend is Class B. ... Virtual Class: Also known as Virtual Base Class, aids in effective multiple inheritance.