Programming and Data structures
  • Home
  • About
  • Contact

<programming and data
structures/>

THIS WEBSITE IS MAINLY DESIGNED FOR HELPING OUT NOVICE PROGRAMMERS WITH DATA STRUCTURES AND ALGORITHMS

C++ program to implement the use of Virtual functions and Pure Virtual functions:

7/31/2016

0 Comments

 
Notes:
             Classes that contain at least one pure virtual function is called Abstract classes. The pure virtual functions must be defined in the derived classes, or else they also become Abstract. Abstract classes cannot be used to create objects. But can be used to create  a pointer to that class type. Virtual functions provide dynamic binding to the functions defined in  the derived classes.

Binding: Connections between  the function call statement and the function definition.
Dynamic Binding: Binding that happens during the runtime.
Static Binding: Binding that happens during the compile time.

Sharable Link:


gist.github.com/ravikiran0606/b6b34ce40dd624082d71f4a47a9a1398

0 Comments



Leave a Reply.

    Author

    S.Ravi Kiran, Competitive Sport Programmer.

    Archives

    September 2016
    August 2016
    July 2016

    Categories

    All
    ABaCUS 16
    Array Of Objects
    Bank Class
    BFS
    Complex Number Class
    Const Objects And Const Classes
    DFS
    Digit Class
    Dijkstra
    Dual Stack
    Dynamic Constructor
    Friend Class
    Function Pointers
    Graphs
    Initializing Nested Members
    ITRIX 16
    Krushal's Algorithm
    Kurushetra Online Programming Contest 16
    Matrix Addition
    Minimum Spanning Tree (MST)
    Nested Class
    Operator Overloading
    Pointers To Array Of Objects
    Pointer To Array
    Pointer To String
    Prim's Algorithm
    Pure Virtual Functions
    Queue Class
    Shortest Paths In Weighted Graph
    Stack Application
    Stack Class
    Static Members
    STL Map
    STL Vector
    String Class
    String Concatenation
    Time Class
    Two Stacks In A Single Array
    Type Conversion In Classes
    Validation Of Expression
    Virtual Functions

    RSS Feed

Powered by Create your own unique website with customizable templates.
  • Home
  • About
  • Contact