When will a constructor executed?

Answer Posted / ssss

When ever object is created.

Is This Answer Correct ?    27 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is polymorphism needed?

605


Explain virtual inheritance?

685


#include #include #include #include void insert(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); insert(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void insert(char *items, int count) { register int a, b; char t; for(a=1; a < count; ++a) { t = items[a]; for(b=a-1; (b >= 0) && (t < items[b]); b--) items[b+1] = items[b]; items[b+1] = t; } } design an algorithm for Insertion Sort

2170


Can we define a class within the interface?

555


Prepare me a program for the animation of train

2000






What are objects in oop?

610


What does sksksk mean in text slang?

1537


What is abstraction encapsulation?

659


What is encapsulation in oop?

609


What is abstraction oop?

625


What is the point of oop?

656


what type of question are asked in thoughtworks pair programming round ?

1766


Why is abstraction used?

612


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1659


What is encapsulation example?

551