| |
GeekInterview.com > Interview Questions > Programming > C++
| Print | |
| Question: What is a class?
Answer: Class is a user-defined data type in C++. It can be created to solve a particular kind of problem. After creation the user need not know the specifics of the working of a class. |
| December 12, 2005 07:58:46 |
#4 |
| Kusuma |
Member Since: Visitor Total Comments: N/A |
RE: What is a class? |
| Class is a User Defined Data Type....it encapsulate both data and functions.Real time Example: Car is a class....under which we have different types, which is called a object interms of OOP.Software Ex: if i declare variable , say int a; .....here " int " is CLASS. and " a " is obeject of int class. |
| |
Back To Question | |