List.cpp
int  List::getElementCount() const{
    int allElements=0;
    for(int i=0; i<10 ;i++)
    {
        allElements=elementCount[i]+allElements;
    }
    return allElements;
}
// Description: Returns the total element count currently stored in List.
Returns the total element count currently stored in List.
Returns the total element count currently stored in List .
int  List::getElementCount() const{
    int allElements=0;
    for(int i=0; i<10 ;i++)
    {
        allElements=elementCount[i]+allElements;
    }
    return allElements;
}
int List :: getElementCount ( ) const { int allElements = 0 ; for ( int i = 0 ; i < 10 ; i ++ ) { allElements = elementCount [ i ] + allElements ; } return allElements ; }
Description: Returns the total element count currently stored in List.
Description : Returns the total element count currently stored in List .