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 overriding in oops?

602


Why we use classes in oop?

578


Are polymorphisms mutations?

699


Why is oop useful?

602


How to improve object oriented design skills?

569






What are the benefits of interface?

577


What is the importance of oop?

609


Is html an oop?

580


What is overloading in oop?

574


Can abstract class have normal methods?

610


Can we have inheritance without polymorphism?

608


What is the difference between inheritance and polymorphism?

589


Whats is abstraction in oops?

591


Can bst contain duplicates?

668


How do you define a class in oop?

628