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

What is a class and object?

737


What is overloading and its types?

755


What is constructor in oop?

751


What is the real time example of encapsulation?

731


What is polymorphism and types?

749






What is inheritance in simple words?

759


What is the highest level of cohesion?

714


What is class and object in oops?

757


Which is not an object oriented programming language?

668


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

2909


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1781


Which language is pure oop?

679


What is polymorphism and example?

714


What is stream in oop?

986


Get me a number puzzle game-program

1854