What is the difference between class and object?

Answer Posted / neha

classes and objects are seprate but related concept.every
object belong to a class and every class contains one or
more objects.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism oop?

860


Why it is called runtime polymorphism?

828


what is difference between class template and template class?

2435


What is a class in oop?

805


What is new keyword in oops?

821


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6420


Why do we use oop?

859


What is encapsulation with example?

820


Explain the advantages of inheritance.

908


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

2361


What is the point of oop?

897


Can a varargs method be overloaded?

850


What is inheritance write a program to show use of inheritance?

916


How many human genes are polymorphic?

827


What is the main feature of oop?

930