by Dinesh Thakur Category: Classes in C++

A feature of some programming languages in which the same 0PERATORmay be used on different data types with different, but analogous, results. For example most languages permit the same operator + to add either INTEGER or FLOATING-POINT numbers, and many further allow it to be used to CONCATENATE strings, so that 'rag' + 'mop' produces 'ragmop'. A few languages, including C++, allow the programmer to create new operator overloading.



 
by Dinesh Thakur Category: Classes in C++

Storage Classes are used to determine in which space the value of variable will Stored. And what will be the value of variable, when we doesn’t Specify the value of variable. And In what Place we can use the value of variable. The Storage Classes Determines the Following things.

 
by Dinesh Thakur Category: Classes in C++

Early Binding:Early Binding Always Occur in the Polymorphism, when we pass the Reference of a sub Class into the Pointer Object of Base Class, then the Member Functions Are never to be Override. When we execute the Program then Compiler knows this thing. This is called as Early Binding. And the Compiler will Execute the Member Functions of Base Class and this will never overrides the Body of the Sub Class Member Function. This is known as the early binding.

 
by Dinesh Thakur Category: Classes in C++

Arrays can be declared as the members of a class. The arrays can be declared as private, public or protected members of the class.

 
by Dinesh Thakur Category: Classes in C++

Once a class is defined, it can be used to create variables of its type known as objects. The relation between an object and a class is the same as that of a variable and its data type.



 
by Dinesh Thakur Category: Classes in C++

Object Oriented Programming has a special feature called data abstraction. Data abstraction allows ignoring the details of how a data type is represented. While defining a class, both member data and member functions are described. However while using an object (that is an instance of a class) the built in data types and the members in the class are ignored. This is known as data abstraction. This can be seen from the above example.



 
by Dinesh Thakur Category: Classes in C++

Access Modifiers :- These are also Called as Access Visibility Controls  means they defined where a method and Data Member of class will be used either inside a  class ,outside a class ,in inherited class or in main Method They Tells us the Scope of Methods where they would be used Various types of Access Modifiers  are as follows:-

 
by Dinesh Thakur Category: Classes in C++

The const qualifier is used with the variables of basic data types to prevent them from being modified by the function. In a similar way, const qualifier can also be applied to member functions, member function arguments and the objects of a class.



 
by Dinesh Thakur Category: Classes in C++

Polymorphism (a Greek word meaning having multiple forms) is the ability of an entity such as a function or a message to be processed in more than one form. It can also be defined as the property of an object belonging to a same or different class to respond to the same message or function in a different way. For example, if a message change_gear is passed to all the vehicles then the automobiles will respond to the message appropriately however, the pulled vehicles will not respond. The concept of polymorphism plays an important role in OOP as it allows an entity to be represented in various forms.

 
by Dinesh Thakur Category: Classes in C++

Abstraction is a mechanism to' hide irrelevant details and represent only the essential features so that one can focus on important things at a time; It allows managing complex systems by concentrating on the essential features only. For example, while driving a car, a driver only knows the essential features to drive a car such as how to use clutch, brake, accelerator, gears, steering, etc., and least bothers about the internal details of the car like motor, engine, wiring, etc.

 
by Dinesh Thakur Category: Classes in C++

In the Hierarchical Inheritance, when we use The Same Data Member in the Sub Class Then the Data Member will Contains the Many values So that here Data Member will be Ambiguous Because a Single Data Member have two or more values.

 

Page 1 of 6



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.



Related Articles