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


Please Help Members By Posting Answers For Below Questions

#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2359


Why interface is used?

784


What is overloading and its types?

857


explain sub-type and sub class? atleast u have differ it into 4 points?

2067


What is and I oop mean?

866


What is variable example?

825


What is persistence in oop?

899


What are the data types in oop?

851


What is polymorphism what are the different types of polymorphism?

782


class type to basic type conversion

2129


write a program that takes input in digits and display the result in words from 1 to 1000

2219


What is protected in oop?

841


Can enum be null?

789


c++ program to swap the objects of two different classes

2163


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.

979