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 |
What is overriding vs overloading?
Differences between inline functions and non-inline functions?
What are objects in oop?
What is interface in oop?
What is multidimensional array?
design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }
What is interface? When and where is it used?
what is ltti
What is the difference between an object and a class?
Should you protect the global data in threads? Why or why not?
When is a memory allocated to a class?
What does and I oop and sksksk mean?