Question d’entretien chez Global Edge Software

How much memory a class take without any data memebr and functions

Réponses aux questions d'entretien

Utilisateur anonyme

22 déc. 2011

its 1 byte as address will be allocated to the class when initalized.

1

Utilisateur anonyme

11 déc. 2013

ya correct 1 byte it occupies for an empty class, 4 functions are declared by compiler during compilation inside empty class, they are, 1) copy compilation 2) overload assignment operator 3)default constructor 4)default destructor, search in google for more imformation and refer a book called " object oriented programming with c++" by subhash k u , pearson publication, best book for c++

1