UrbanPro
true
default_background

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)

Profile Photo Prachi Sharma
20/05/2019 0 View Comments0

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 Loading Spinner
Default Profile Photo

Please Enter a comment

Submit

Other Lessons for You

Protein
Proteins are organic molecules consisting of many amino acids bonded together. Amino Acids: Monomers or building blocks of all proteins. Parts of the Amino Acid: a) Amino group (NH2) b) Carboxyl...
Profile Photo

Language Acquisition Is No Puberty.
Language acquisition is no puberty. Chomsky introduced the distinction between competence and performance.Chomsky’s model primarily centered around the existence...
Profile Photo

Solve Amalgamation Problem In 7 Steps
Step 1: Identify nature of Amalgamation: If the six conditions of amalgamation in nature of merger not satisfied then it is treated as amalgamation in nature of purchase. If the information provided in...
Profile Photo

How to Solve Capital Adjustment Question in Admission of Partner- 12th Accounts CBSE
Generally capital adjustment are divided into two major part: 1. When new partner capital is given in the question: The new partner capital is given then capitals are to be adjusted as per new ratio and...
Profile Photo

Various Methods of Depreciation
Dear students,Depreciation refers to a phenomenon where the value of a fixed asset falls year on year. This change is due to obsolescence in technology, efflux of time and wear and tear of the fixed asset...
Profile Photo
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