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 |
Why many objects can working together? How objects working togetherM I want to see example code.
What is property in oops?
how do you handle yourself when you feel the wald is aganist you
What is a class in oop?
WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE
What is polymorphism and example?
Explain virtual inheritance?
Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.
What is pure oop?
#include <iostream> using namespace std; int main() { int a = 3; int c[5][5]; for (int x=0;x<5;x++) { for (int y=0;y<5;y++) { c[x][y] = x*y; } } cout << c[a][2]; }
How to calculate the age from the date of birth by using the program?
what is the need of abstraction? what is abstraction?what is the abstraction for stack?