Send the link below via email or IMCopy
Present to your audienceStart remote presentation
- Invited audience members will follow you as you navigate and present
- People invited to a presentation do not need a Prezi account
- This link expires 10 minutes after you close the presentation
- A maximum of 30 users can follow your presentation
- Learn more about this feature in our knowledge base article
Do you really want to delete this prezi?
Neither you, nor the coeditors you shared it with will be able to recover it again.
Make your likes visible on Facebook?
You can change this under Settings & Account at any time.
Transcript of OOP
Make CalcArea function and copy it in more than one program then you discovered a bug on it ???!!!
Try to think
How to make a soccer game ?
some real things appear in soccer games like:
Benefits of OOP
Traditional Procedural-Oriented languages
Languages like C, Pascal, Fortran
Object-Oriented Programming (OOP)
Why OOP ?
Can You Answer Now ?
It Depends on
Functions are not well-encapsulated as
a self-contained reusable unit.
Drawbacks in creating reusable software components.
Location in the field
You don't need to keep re-inventing the wheels
and re-write the same functions for different situations. The fastest and safest way of developing
a new application is to reuse existing codes
Fully tested and proven codes
Ease in software design
Ease in software maintenance
are easier to understand,
therefore easier to test,
debug, and maintain.
you make all your methods and variables on the same file and your project contains 300K line you you see about 200 variable and 300 function
you want to modify function that uses some variables
Try to Fix a bug
If you didn't try by yourself you won't able to imagine the disaster
But I can describe to you
Classes & Instances
no return type
can only be invoked once
Default Arguments for Functions
Access Control Modifiers
Information Hiding and Encapsulation
Getters and Setters
Abstract Data Types (ADT).
Providing only essential information to the outside world (T.V Example)
cout << "Hello C++" <<endl;
You can use the cout object of class ostream to stream data to standard output like this:
Here, you don't need to understand how cout displays the text on the user's screen. You need to only know the public interface and the underlying implementation of cout is free to change.