Introduction to Object Oriented Concepts. WEEK1 Asst . Prof. Dr. Senem Kumova Metin. Classification of High level Programming languages. Programming paradigm : Alternative approaches to the programming process Imperative ( Procedural ) ( Fortran , Algol , Pascal , Basic , C)
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Asst. Prof. Dr. Senem Kumova Metin
(defun factorial (n)
(if (<= n 1)
(* n (factorial (- n 1)))))
The program can then be called as
brother(X,Y) /* X is thebrother of Y */
:- /* iftherearetwopeople F and M forwhich*/
father(F,X), /* F is thefather of X */
father(F,Y), /* and F is thefather of Y */
mother(M,X), /* and M is themother of X */
mother(M,Y), /* and M is themother of Y */
male(X). /* and X is male */
:- father(F,Y), brother(X,F).
EXAMPLE -- > PERSON OBJECT
Attributes : EyeColor, Age, Height …
Behaviors : Walking, Talking, Breathing …
into sub problems (sub procedures).
The problem of data hiding !!
Becauseotherobjectsshould not manipulate data withinanotherobjectdue
to data hiding
–> When you instantiate an object you use the class as the basis for how the object is built
The quality of being able to assume different forms
A program part is polymorphic if it can be used for objects of several types
return (area) ;}
A computer has (a) video card(s)
A computer has (a) drive(s)