0

Can anyone please explain me what is an interface class? Abstract Class? and Static Class? Please explain me with a simple example in C++. Since i am a beginner to C++.

Also, please give me some links where I can easily learn C++.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
  • Static means just one instance, interface is class with abstract methods that should be overwrited by children – Mohammad Ali Akbari Feb 27 '11 at 09:03
  • 6
    As I've said many, many, many times now, if you are new to C++, **[please pick up a good C++ book as recommended by the C++ community at Stack Overflow](http://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list)**. You'll benefit more with resources written by C++ programmers who actually know what they're talking about. – In silico Feb 27 '11 at 09:03

1 Answers1

0

Depending on the context, an interface class is either a class of the interface layer or a class whose purpose is to create a contract between a caller and an implementation (usually by providing only purely virtual functions).

An abstract class is a class that has at least one purely virtual function.

A static class is a class that has only static member variables and static member functions.

If you have sufficient experience with some other programming language, read The C++ Programming Language. If not, you will have to go for a book that not only teaches C++, but also programming.

Oswald
  • 31,254
  • 3
  • 43
  • 68