LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > Aquarius_Girl
User Name
Password

Notices


Virtual functions
Old

What is: Abstract base class, and Pure Virtual function - C++

Posted 11-21-2011 at 04:42 AM by Aquarius_Girl
Updated 01-10-2012 at 08:17 AM by Aquarius_Girl

  • In the cases where the derived classes may share the common functionality
    but with altogether "different" definitions, it makes sense to force the
    developers to create their own definitions for those common functions in
    concerned derived classes.
    This can be achieved by making the class "abstract".
  • A class is called an "abstract" class when it contains at least one "pure
    virtual
    " function.
  • A "pure virtual
...
Senior Member
Views 6217 Comments 0 Aquarius_Girl is offline

  



All times are GMT -5. The time now is 07:42 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration