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

String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

1944


Why do we need polymorphism in c#?

688


Templates mean

1592


what is the 3 types of system development life cycle

2435


What is the types of inheritance?

604






i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1419


What is abstraction encapsulation?

659


What is the benefit of oop?

570


write knight tour problem which is present in datastructure

2168


What is constructor in oop?

589


what is the sylabus for priliminaries?

1691


class type to basic type conversion

1839


Why do while loop is used?

577


How do you achieve polymorphism?

618


Why is encapsulation used?

577