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
8. Object
• Any thing that really exist in the world
• a table, a car, a dog, a person, etc.
• It has some properties
• It has some action
9. class
• Classes provide the structure for objects
• It is a blue print
• It does not exist physically
10. Encapsulation
• The Wrapping of data and function into a
single unit
• It is also known as information-hiding
• It is the way of implementing abstraction
12. Abstraction
• Data abstraction refers to, providing only essential
information to the user.
• Hide unnecessary data from the user.
class Bank
{
private int accno;
private String name;
private float Balance;
13. Abstraction contd.
private float Profit;
private float Loan;
public void display_to_clerk()
{
cout<<accountno<<Name<<Balnce)
}
Public void display()
{//display all }
}
14. Inheritance
• Mechanism of deriving a new class from an already
existing class.
• 5 types of inheritance
– Single level
– Multilevel
– Multiple Hierarchical
– Hybrid
18. Function Overloading
• Two or more function with same name but different
function
• Differentiated by signature
Class sample
{
Void add(int a,int b)
{
cout<<a+b;
}
Void add(int a,int b,int c)
{
cout<<a+b+c;}
}
20. Program using class
class Student
{
public:
char Dob[15];
int marks[5];
int age;
int rollNo;
float avg;
char Name[19];
int total=0;
void setdata()
{
cout<<"nRollNo: ";
cin>>rollNo;
cout<<"n Name:";
cin>>Name;
cout<<"nDOb";
cin>>Dob;
cout<<"Age";
cin>>age;
24. 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
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
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com
IKK Road,
East Hill, Kozhikode
Kerala, India.
Ph: + 91 – 495 30 63 624
NIT-TBI,
NIT Campus, Kozhikode,
Kerala, India.