Answer to Question #240652 in C++ for fury

Question #240652

For the given code you task is to to implement the following:

1)destructor LList::~LList ()



struct Node {

int data;

Node *next;

class LList {

public:

LList(); ~LList();

private:

Node *head;

int size;

};

LList::LList ()

{

head = NULL;

size = 0; }



1
Expert's answer
2021-09-22T23:48:50-0400
struct Node {


int data;


Node *next;


class LList {


    public:


        LList(); ~LList();


    private:


        Node *head;
        
        int size;


};


LList::LList ()


    {
    
    head = NULL;
    
    size = 0; 
        
    }
LList::~LList (){
    
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS