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 for loop and its syntax?
What is difference between multiple inheritance and multilevel inheritance?
i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
Program to check whether a word starts with a capital letter or not.
What is Method overloading?
What is purpose of inheritance?
Why it is called runtime polymorphism?
1.what are two type of classe members called? 2.what is data hiding and data encapsulation? 3.how do you make a class member visible aouside its class? 4.what is the default visibility of a class data member? 5.what are the advantages of oop over the structured programing?
WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.
why to use operator overloading
4. What do you mean by a prototype? Define analysis prototype