2. Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
3. OOPs concept in java
Shanu k k
shanukk89@gmail.com
www.facebook.com/shanunn
i
twitter.com/shanu
in.linkedin.com/in/shanu k k
9656153432
6. Object oriented program
Oop is an approach that provide
modularizing programs by creating
partitioned memory area for both data
and functions that can be used as
template for creating copies of such
modules on demand.
8. • Emphasis on data rather than procedure
• Programs are divided into what are called
Object
• Data is hidden and cannot accessed by
external function
• Object communicate each other through
method
• New data and method can be added
whenever necessary
9. Object
• Basic runtime entities
• State and behavior of the basic program
Components
Eg:person,place…..
• Object condain data and code to manipulate
data
• Compination of data and method make up an
object
10. Class
• User defined data type
• Once a class defined we create variables,these
Variable are termed as instances of classes
which are actual object
• Collection of object of similar type
11. Method
A class without method has no life,object
created by such class cannot respond to any
messages
• Method that are necessary for manipulating
data contained in class.
12. Data abstraction
Wrapping up of data and method into a single
unit
Data Encapsulation
Representing essential feature without including
details or explanation
13. • Inheritance:
Object of one class acquire the property of another
class
Reusability
We can additional features to an existing class without
modifying it
Deriving new class from existing class
15. Class sum{
Void add (int a,int b)
{
System.out.println(“+(a+b));
}
Public static void main( String args[])
{
sum obj=new sum;
Obj.sum(10,5)
}
16. If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
17. Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550