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 |
What is the real time example of encapsulation?
What are the benefits of interface?
design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }
What is destructor give example?
How long to learn object oriented programming?
What is the expansion of OOPS?
What is constructor overloading in oop?
what is the function of 'this' operator ?
What are oops methods?
c++ program to swap the objects of two different classes
why oops need in programming
What is encapsulation c#?