Why we use classes in oop?



Why we use classes in oop?..

Answer / Gaurav Shukla

We use classes in OOP to define a blueprint or template for creating objects, encapsulate data and behavior, promote reusability by grouping related data and methods, enable inheritance (deriving new classes from existing ones), and support polymorphism (treating different objects similarly).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

if u write a class do u write Assignment operator and copy constructor

1 Answers   Siemens,


string is a class or data type in java?

3 Answers  


what is ns string? what is ns array?

1 Answers  


How to improve object oriented design skills?

1 Answers  


What is the importance of oop?

1 Answers  


What is the main feature of oop?

1 Answers  


What is encapsulation example?

1 Answers  


What is coupling in oops?

1 Answers  


What is class and example?

1 Answers  


What are the benefits of oop?

1 Answers  


What is virtual destructor? Why?

3 Answers   Agile Software, College School Exams Tests, CSC,


Why do we use polymorphism in oops?

1 Answers  


Categories