What is a class definition?



What is a class definition?..

Answer / Nirpendra Yadav

A class definition in C++ defines a user-defined data type that consists of one or more variables (member variables or fields), and functions (member functions) that operate on those variables. A class serves as a blueprint for creating objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is the use of seekg in c++?

1 Answers  


What does flush do?

1 Answers  


What is the use of pointer in c++ with example?

1 Answers  


Write some differences between an external iterator and an internal iterator?

1 Answers  


Write about a nested class and mention its use?

1 Answers  


What does ctime() do?

1 Answers  


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

1 Answers  


What is atoi in c++?

1 Answers  


How can you say that a template is better than a base class?

1 Answers  


When the design recommends static functions?

2 Answers   Symphony,


If there are two catch statements, one for base and one for derived, which should come first?

1 Answers  


What is the difference between a shallow copy and a deep copy?

3 Answers  


Categories