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 |
Why do we use encapsulation in oops?
What is Dynamic Polymorphism?
What is multiple inheritance ?
17 Answers Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,
What does sksksk mean in text slang?
1. Define a class.
What are oops methods?
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.
Whatis the difference between oop and object based language
How do you achieve polymorphism?
what is a binary overloading
What is inheritance in oop?
how to swap the variables without using temp and operators