3. 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
6. OBJECTS
An OBJECT is an identifiable entity with some
characteristics and behaviour.
Example: Orange
Characteristics: spherical shape
orange colour
Behaviour: juicy
tastes sweet-sour
7. CLASS
A CLASS is a group of objects that share common
properties and relationships
Example: a CAR can be considered as
a class.
Objects in this class involves the
steering,wheels,engine.
Properties involve the
company,color,model,speed,engine
capacity,etc
8. EXAMPLE
class CS{
int studentid;
char name[100];
int totmks=0;
float avg;
int total(int marks[5])
{
for(i=0;i<5;i++)
{
totmks+=marks[i];
avg=totmks/5;
}
return balance;
}
};
class
objects CS stud1,stud2;
10. DATAABSTRACTION
The act of representing essential features without including the
background details or explanations.
Example:
A calculator
Only the results are displayed on the
screen
The user is unaware of its internal
processing
20. const int size=10;
Item order[size];
int main()
{
int ino;
float cost;
//get value for all items
for(int a=0;a<size;a++)
{
cout<<"Enter itemno & price for item"<<a+1<<"n";
cin>>ino>>cost;
order[a].getdata(ino,cost);
}
return 0;
}
23. Want to learn more about programming or Looking to
become a good programmer? Are you wasting time on
searching so many contents online? Do you want to learn
things quickly? Do an online course @ baabtra.com. We
provide development, testing and production environments
just like in the industry to practice. The courses are so
structured to make a quick, good software professional.
24. Follow us @ twitter.com/baabtra
Like us @ facebook.com/baabtra
Subscribe to us @ youtube.com/baabtra
Become a follower @ slideshare.net/BaabtraMentoringPartner
Connect to us @ in.linkedin.com/in/baabtra
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
25. Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
Cafit Square,
Hilite Business Park,
Near Pantheerankavu,
Kozhikode
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com