what is Class in oops with example?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the oops and benefits of oops programming?

717


Write a c++ program to display pass and fail for three student using static member function

3067


Why is polymorphism important in oop?

800


Explain the concepts involved in Object Oriented programming.

853


What does and I oop mean in text?

835


What is advantage of inheritance?

912


What is encapsulation process?

774


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1856


What is overloading and its types?

808


What are the data types in oop?

803


Are polymorphisms mutations?

882


What is encapsulation c#?

792


They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?

1602


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4460


What does and I oop mean?

827