1. Define a class.
Answers were Sorted based on User's Feedback
Answer / mayank kumar
class is a user defined data type and it is the collection
of element. it contains two things
data member and member function.
| Is This Answer Correct ? | 14 Yes | 0 No |
Answer / nature
class is a user defined data type and it is the collection
of element
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is the difference between class and object?
What is multidimensional array?
What is the advantage of oop over procedural language?
When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> 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
What is OOPS and How it is different from Procedural Programming ?
23 Answers HP, Infosys, Thyrocare,
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Pls...could any one tell me that whether we can access the public data memeber of a class from another class with in the same program. Awaiting for your response Thanku
what is the difference between virtual function and destoctor?
You have one base class virtual function how will call that function from derived class?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)