Why do we use class?



Why do we use class?..

Answer / Nripendra Chandra Verma

We use classes in OOP to define a blueprint for creating objects that have similar properties and behaviors. They allow for code reusability, encapsulation of data and methods, and hierarchical relationships between objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

Why do we use encapsulation in oops?

1 Answers  


What is Dynamic Polymorphism?

13 Answers  


What is multiple inheritance ?

17 Answers   Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,


What does sksksk mean in text slang?

1 Answers  


1. Define a class.

6 Answers  


What are oops methods?

1 Answers  


Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.

6 Answers  


Whatis the difference between oop and object based language

3 Answers  


How do you achieve polymorphism?

1 Answers  


what is a binary overloading

2 Answers  


What is inheritance in oop?

1 Answers  


how to swap the variables without using temp and operators

1 Answers  


Categories