concepts of oop

26
PREPARED BY AKSHAY JANI (116380307521)

Upload: jani

Post on 12-Jul-2015

407 views

Category:

Investor Relations


0 download

TRANSCRIPT

Page 1: Concepts of oop

PREPARED BY

AKSHAY JANI (116380307521)

Page 2: Concepts of oop

ACKNOWLEDGEMENT WE ARE IMMENSLY GREATFUL TO OUR LECTURER AND

PROJECT GUIDE, MR.MITESH JAISWAL, FOR HER INVALUABLE GUIDANCE WHICH GAVE US A DEEP INSIGHT ON THE SUBJECT. WITH HER KEEN INTEREST AND CONSTANT MORAL BOOSTING, WE ARE ABLE TO IMPLEMENT THE PROJECT SATISFACTORILY.

WE EXPRESS OUR VERY SINCERE THANKS TO COMPUTER ENGINEERING DEPT. FOR PROVIDING ADEQUATE FACILITIES TO COMPLETE OUR PROJECT.

WE ARE AGAIN CORDIALLY THANKFUL TO OUR C&E DEPARTMENT STAFF, FRIENDS AND OTHER PEOPLE WHO HAVE DIRECTLY OR INDIRECTLY HELPED US IN COMPLETION OF THIS PROJECT.

LAST BUT NOT THE LEAST, WE ARE ALSO THANKFUL TO OUR FAMILY MEMBERS WHO ENGOURAGED AND SUPPORTED US ROUND THE CLOCK FOR THIS PROJECT.

Akshay Jani

Kaushal Soni

Page 3: Concepts of oop

CERTIFICATE

This is to certify that AKSHAY JANI Student of computer Engineering,

bearing Enrollment No: 116380307521 have satisfactorily completed

his/her Seminar work as a part of course curriculum in Diploma

Engineering semester III having a report title “ CONCEPT OF OBJECT

ORIENTED PROGRAMMING ”.

MR.MITESH JAISWALLecturer, computer Dept.

PIETDS-2nd Shift, Limda.

PARUL INSTITUTE OF ENGINEERING & TECHNOLOGY

COMPUTER ENGG. DEPARTMENT

LIMDA, VAGHODIA, VADODARA

Page 4: Concepts of oop

CERTIFICATE

This is to certify that KAUSHAL SONI Student of computer Engineering,

bearing Enrollment No: 116380307509 have satisfactorily completed

his/her Seminar work as a part of course curriculum in Diploma

Engineering semester III having a report title “CONCEPT OF OBJECT

ORIENTED PROGRAMMING ”.

MR.MITESH JAISWALLecturer, computer Dept.

PIETDS-2nd Shift, Limda.

PARUL INSTITUTE OF ENGINEERING & TECHNOLOGY

COMPUTER ENGG. DEPARTMENT

LIMDA, VAGHODIA, VADODARA

Page 5: Concepts of oop

BASIC CONCEPT OF OBJECT

ORIENTED PROGRAMMING

Object

Classes

Data abstraction

Data encapsulation

Inheritance

Polymorphism

Dynamic binding

Message passing

Page 6: Concepts of oop
Page 7: Concepts of oop
Page 8: Concepts of oop

Object OBJA1

A2

A3

sum( ) product( )

{ {

A3=A1 + A2; A3=A1 * A2 ;

Return A3; Return A3;

) )

If he requires Product of two

numbers than he simply

write

OBJ.product( )

It is like steering in car

If he requires sum of two

numbers than he simply write

OBJ.sum( )

It is like brakes in car

Name of objec : OBJ

Names of Functions: Sum() , Product()

Page 9: Concepts of oop
Page 10: Concepts of oop
Page 11: Concepts of oop

He can not see the internal structure of the car.

abstraction involves the facility to define objects that represent abstract "actors" that can perform work, report on and change their state, and "communicate" with other objects in the system.

Page 12: Concepts of oop
Page 13: Concepts of oop

Data

A1, A2, A3

Operations/functions

sum( ), product( )

Page 14: Concepts of oop
Page 15: Concepts of oop
Page 16: Concepts of oop

VEHICLE

AUTOTypeofEngine

PowerofEngine

PULLEDNo_of_pullers

AEROMaxHeight

MinHeight

Type_of_Engine

Power_of_Engine

LANDNwheels

Dwheels

TypeofEngine

PowerofEngine

AQUApositionType

TypeofEngine

PowerofEngin

e

Page 17: Concepts of oop
Page 18: Concepts of oop
Page 19: Concepts of oop

A B

CA

B

C

A

B

A

B C D

A

B C

D

A

B C

D

Page 20: Concepts of oop

It is made of two words

Poly means many & Morphism means forms

So if something is in more than one form it may be termed as

Polymorphic and this feature is called

Page 21: Concepts of oop

Compile time polymorphism Run time polymorphism(1) Function overloading

(2) Operator

overloading

(1) Virtual function

Page 22: Concepts of oop

It means the function associate with a

given procedure call is known until at

time of run time is calls dynamic binding

or late binding.

Page 23: Concepts of oop

)

Page 24: Concepts of oop
Page 25: Concepts of oop
Page 26: Concepts of oop

www.facebook.com/jani.akshay