what is Class in oops with example?
Answers were Sorted based on User's Feedback
Answer / sudhavasugj@gmail.com
Object is the variable of class in oops. Class is created
for do some behavior in program. The behavior is accessed by
creating the object for the particular class in main program.
Ex: computer c++;
computer - class
c++ - object
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / venkatesh
Class is a user defined datatype, and it is a logical representation of data(means which does not occupy any space)
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / elakiya.p
a class is a collection of similar object type.
for eg:
fruit mango;
->fruit is a user defined data type.
->mango is a object.
->fruit is also we called class.
->it behave like built-in types of programming language.
| Is This Answer Correct ? | 3 Yes | 0 No |
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
what is the use of classes in c++;
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
namespace is working on which compiler?
how to get the oracle certification? send me the answer
What is the difference between Home and $Home?
What is encapsulation process?
tel me oops defination in single line
What is polymorphism in oops with example?
what is the main difference between c and c++?
386 Answers AZTEC, B.Tech, CMC, College School Exams Tests, HCL, IBM, ITM, Khalsa Institute, Microsoft, Oracle, Sanjeevni Institute, TCS, Tech Mahindra, Wipro, ZeOmega,
In which cases you use override and new base?
What is late bound function call and early bound function call? Differentiate.