What are the OOPS concepts?
Answer Posted / sirisha
oops concepts are
1.Object
An object is collection of data members and associated
member functions.
2.Class
Class is a data structure which encapsulates data and
member function in a single unit and the member funtions of
the class are used to access member variables.
3.Abstraction
Abstraction is of the process of hidding data.
or
Identifying the important properties of existing modes.
4.Encapsulation
The wrapping up of data and methods in a single unit is
known as encapsulation.
5.Polymorphism
Process of aquiring properties from one object to another
with changes.
or
The same operation can be applied differntly in diffent
objects.
ex:5+2,a+b.
6.Inheritance
Process of aquiring properties from one object to another
without changes.
or
Identifying the important features based on one class to
next class.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
#include
Why interface is used?
What is overloading and its types?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is and I oop mean?
What is variable example?
What is persistence in oop?
What are the data types in oop?
What is polymorphism what are the different types of polymorphism?
class type to basic type conversion
write a program that takes input in digits and display the result in words from 1 to 1000
What is protected in oop?
Can enum be null?
c++ program to swap the objects of two different classes
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.