Hi to all,can u tell me what is the difference between a abstract class and interface class,where to use abstract class and where to use interface in ur project.
2-what is static library and dynaminc library ,shared library,,,,,,if [possible tell me with some example.
thanx
No such thing as an "interface" in C++, This is a java term. An abstract class is a class that you cannot create an instance of because it has 1 or more pure-virtual methods. Pure-Abstract classes are C++'s equiv to an interface.
You use an abstract class as a parent class to most/any child class where you do want to override function/method behavior.
Static Library is a library that is compiled into your application, dynamic library only the references are compiled in. When you distribute an application with dynamic library references you must also distribute the libraries (dlls, .so) that it references. So statically linked executables are bigger in size.