1. Define a class.

Answer Posted / bijaya kumar jena

Class is a user defined data type. It is the collection of
data member and member function.

Ex:-
Class Add
{
private:
int n1,n2; //Data member
public:
res() //Member Function
{
cout<<"Result :";
}
}
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain virtual inheritance?

680


What is difference between inheritance and polymorphism?

562


What is pointer in oop?

533


Is html an oop?

576


What are oops functions?

582






What is the point of oop?

646


#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

2159


How is class defined?

582


What is solid in oops?

598


What is encapsulation with example?

576


What is oops concept with example?

574


What is polymorphism and types?

596


Can you inherit a private class?

631


What is the point of polymorphism?

582


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1833