UrbanPro
true

Take Class 12 Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Class 11- C++ (Classes and objects)

P
Prachi Sharma
20/05/2019 0 0

C++ has an advantage over C, which is the primary reason why C became obsolete. The concept of Object Orientation is the missing link which connects or enhances our programming approach more towards the real world.

Classes - Let me take an example to explain the concept of classes: Let us assume "Audi" is launching its brand new model from the "A series". So "Audi" can be considered as a CLASS which has some models(A2, A4) as existing models and let us suppose the new model is named as "A25".

Here A2, A4, A25 are the OBJECTS.

Audi as a class may have features like Automatic gear shift, Power window, sunroof etc. which are the common attributes among all the models(A2, A4, A25). So all the object of CLASS "Audi" are using these common attributes + some additional attributes of their own. So basically a class can be defined as a bunch of functionalities which are common among the objects of that class.

Here are the five basic Properties of an object-oriented system:

1) Data Abstraction

2) Data encapsulation

3) Modularity

4) Polymorphism

5) Inheritance

0 Dislike
Follow 1

Please Enter a comment

Submit

Other Lessons for You

Why GST May Boost Gold Smuggling, Illegal Jewellery Sales?
Mumbai: A hike in taxes on gold under GST (Goods and Services Tax) could stoke under-the-counter buying and drive up appetite for precious metal smuggled into the country, where millions of people store...

Easy Way to Exam preparation
List out the chapters that you are studied and easy for you. List out the chapter that covers max marks and easy. List out sub topics names in each chapter and prepare each concept by understanding...

Solution to a integration problem
∫ x^4 / ( x² + 1 ) dx As the degree of numerator is higher than that of the denominator, let's divide x^4 by ( x² + 1 ). = ∫ x² - 1 + 1/(x² + 1 ) dx = ∫ x² dx - ∫1•dx + 1/ ( 1 + x² ) dx =

What did Albert Einstein say on income tax?
Prime Minister Narendra Modi quoted Albert Einstein during his speech at the midnight launch of Goods and Services Tax. Mr. Modi said: “Einstein said if there is something in this world that...

Proof of trig double angle formula tan ( 2A )
Now tan ( A + B ) = tan A + tan B/1— tan A tan B Put B = A = tan ( A + A ) = tan ( 2A )= tan A + tan A / 1 — tan A tan A = 2 tan A / 1 — tan² A ∴ tan (2A)= 2 tan A / (1 — tan² A)
X

Looking for Class 12 Tuition Classes?

The best tutors for Class 12 Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take Class 12 Tuition with the Best Tutors

The best Tutors for Class 12 Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more