What is size of a empty class?
Answer Posted / dips
it doesnot take memory just writing class in C++
means i want to say
class d{};
no memory allocation is done here
but is this a empty class?
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
What is a forward referencing and when should it be used?
Can union be self referenced?
Describe the syntax of single inheritance in C++?
Difference between Abstraction and encapsulation in C++?
What is difference between array and vector in c++?
Can you please explain the difference between overloading and overriding?
What is a unnitialised pointer?
How do you define/declare constants in c++?
What is a null object in c++?
What are the uses of pointers?
What is the difference between structures and unions?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
What is the use of lambda in c++?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
Explain the benefits of proper inheritance.