How do you define a class in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?

2 Answers  


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

0 Answers  


How do you print a string on the printer?

0 Answers  


When copy constructor can be used?

4 Answers   Symphony,


What are pointer-to-members? Explain.

0 Answers   iNautix,






Explain what are single and multiple inheritances in c++?

0 Answers  


What is namespace & why it is used in c++?

0 Answers  


What are the differences between malloc() and calloc()?

0 Answers  


What are abstract data types in c++?

0 Answers  


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

0 Answers  


Can malloc be used in c++?

0 Answers  


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

0 Answers  


Categories