Professional Documents
Culture Documents
02
LECTURE 4
04
Today’s Agenda
01 Relation Between OOP & C++
03
04 Terminologies Used In C++ & OOP
Accessors :
These are those member function which NEVER change the value of
the data members of the calling object. In other words they only ACCESS the
values of data members but they do not change them.
Mutators :
These are those member functions which change/manipulate the
values of the data members of the calling object.
Terminologies Use in C++ & OOP
It is the communication
Between an INSTANCE and it’s
BEHAVIOUR.
Classification of Prog. Languages
a. Encapsulation
b. Polymorphism
c. Inheritance
Classification of Prog. Languages
Following are the details of this categorization:
1. Non Object Oriented Languages: These are those language which do not at all
support any kind of the three principles mentioned above.
Examples are: C, Cobol, Pascal, Fortran etc.
2. Object Based Languages / Partially Object Oriented Language: These are those
language which do not support all the principles mentioned above but they
support some of them. The most popular examples in this category is the
Language Called JAVA SCRIPT, It supports Encapsulation, Polymorphism, but it
does not support inheritance other examples are: VB Script, ActionScript,
JScript etc.
Classification Of Prog. Languages
3. Object Oriented Languages: These are those language, which are atleast support
all the three principles mentioned above but they never force a programmer
to always use these principles in his program.
Examples are: classic C++, modern C++, Python, PHP etc.
.
4. Pure Object Oriented / Strict Object Oriented / Full Object Oriented Languages:
These are those languages which not only support the above three principles
but they perform all of their activities in an object oriented way.
Classification Of Prog. Languages
a. No global declaration.
b. It is compulsory to use “class” in even the simplest program of these
language.
.
c. They don’t support variables as everything in them is object.
Strictly speaking, them in today’s world a language which can be called 100%
pure object oriented (without any controversy) is Smalltalk.
Classification Of Prog. Languages
What about JAVA, C#, Scala etc ?
These language can also be termed as pure object oriented languages but some
people think that they are not pure object oriented as they support concept of
data types and variables. But technically speaking , language like Java allow us
to convert even variables into objects using the concepts of Wrapper Classes.
. then even Java can be called as a
So if this point is taken into consideration
Pure Object Oriented Language.
End of Lecture 4
For any queries mail us @: scalive4u@gmail.com
Call us @ : 0755-4271659, 7879165533
Thank you