When is a memory allocated to a class?

Answer Posted / pushpankar mishra

i woould like to clear one thing that object and instance
are two sligthly differnt things

int a; // 'a 'is instance
a=20;//'a' is a object

eg:object+instance
|

int a=20// object + instance;;

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

1020


What is abstraction in oops with example?

874


What is encapsulation selenium?

636


What does it mean when someone says I oop?

679


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

796






What are the benefits of polymorphism?

718


What is oops in simple words?

693


#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

2258


What is the difference between encapsulation and polymorphism?

680


What are oops methods?

647


Can abstract class have normal methods?

684


What is the real life example of polymorphism?

712


What is solid in oops?

706


Why is oop useful?

699


what are the ways in which a constructors can be called?

1676