Thursday, September 18, 2008

c++ : What is virtual class and friend class?

What is virtual class and friend class? 

Friend classes are used when two or more classes are designed to work together and need access to each other's implementation in ways that the rest of the world shouldn't be allowed to have. In other words, they help keep private things private. For instance, it may be desirable for class DatabaseCursor to have more privilege to the internals of class Database than main() has.


What is the word you will use when defining a function in base class to allow this function to be a polimorphic function? 
virtual
 

What do you mean by binding of data and functions? 
Encapsulation.

1 comment:

Thanks to given comments.......

My Blog List