features of OOPS

Answer Posted / swati kashyap

Followings are the feature of OOPS:
OBJECT
CLASS
ABSTRACTION
ENCAPSULATION
POLYMORPHISM
INHERITANCE
MESSAGE COMMUNICATION

OBJECT:- IS THE INSTANCE OF CLASS

CLASS:- IS THE TEMPLATE OF OBJECT i.e, class contain object
in it.

ABSTRACTION:- IS WAY TO REPRESENT THE ESSENTIAL INFORMATION,
WITHOUT SHOWING THE HIDDEN DETAILS. FR EX:- WORKING OF ANY
ELECTRICAL APPLIANCE WE ARE NOT FAMILIAR WITH THE HIDDEN OR
THE INTRINSIC WORKING OF THE APPLIANCE BUT WE KNOW HOW TO
OPERATE IT. BUY PRESS BUTTON. WE KNOW THE OUTCOME OF THAT
MACHINE NOT THE INTERNAL WORKING OF IT.

ENCAPSULATION:- IS THE WAY OF HIDING THE DATA. OR IN OTHER
WORDS EVERYONE IS NOT ABLE TO RETRIEVE THE DATA.
POLYMORPHISM:-IS GENERALLY USED FOR OVERLOADING.

POLYMORPHISM ARE OF TWO TYPES:
COMPILE TIME POLYMORPHISM, RUN-TIME POLYMORPHISM

INHERITANCE:- IS THE WAY, Via. WHICH CHILD OR SUB CLASS CAN
EXTENDS THE ALL METHODS AND FUNCTION OF THE SUPER OR PARENT
CLASS. HERE PARENTS OR SUPER CLASS IS THE CLASS BY WHICH THE
SUB CLASS GET INHERITED. FR EX.. THE VERY OBVIOUS EXAMPLE IN
REAL LIFE, A RELATION OF PARENT AND CHILD.

MESSAGE COMMUNICATION:- MESSAGE COMMUNICATION IS GENERALLY
USED WHEN OBJECT WANTS TO COMMUNICATE WITH EACH OTHER..

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is object oriented programming so hard?

609


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1448


Get me an image implementation program.

1554


What is variable example?

591


Which type does string inherit from?

608






What are oops functions?

576


What is object in oop with example?

688


Why do we need oop?

656


What is the main purpose of inheritance law?

664


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

2157


Why is static class not inherited?

590


Can we create object of interface?

598


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3550


program for insertion ,deletion,sorting in double link list

2274


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

1649