Concepts of oop
-
Upload
jani -
Category
Investor Relations
-
view
408 -
download
0
Transcript of Concepts of oop
![Page 1: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/1.jpg)
PREPARED BY
AKSHAY JANI (116380307521)
![Page 2: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/2.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/3.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/4.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/5.jpg)
BASIC CONCEPT OF OBJECT
ORIENTED PROGRAMMING
Object
Classes
Data abstraction
Data encapsulation
Inheritance
Polymorphism
Dynamic binding
Message passing
![Page 6: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/6.jpg)
![Page 7: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/7.jpg)
![Page 8: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/8.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/9.jpg)
![Page 10: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/10.jpg)
![Page 11: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/11.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/12.jpg)
![Page 13: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/13.jpg)
Data
A1, A2, A3
Operations/functions
sum( ), product( )
![Page 14: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/14.jpg)
![Page 15: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/15.jpg)
![Page 16: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/16.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/17.jpg)
![Page 18: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/18.jpg)
![Page 19: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/19.jpg)
A B
CA
B
C
A
B
A
B C D
A
B C
D
A
B C
D
![Page 20: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/20.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/21.jpg)
Compile time polymorphism Run time polymorphism(1) Function overloading
(2) Operator
overloading
(1) Virtual function
![Page 22: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/22.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/23.jpg)
)
![Page 24: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/24.jpg)
![Page 25: Concepts of oop](https://reader033.fdocuments.us/reader033/viewer/2022052509/55a1506f1a28abc2488b4809/html5/thumbnails/25.jpg)