The mechanism of deriving new class from an existing class is called inheritance. The main advantage of Inheritance is it supports reusability of code. The derived class inherits all the properties of the base class. It is a power packed class, as it can add additional attributes and methods and thus enhance its functionality. TheContinue reading “Inheritance/C++/Important Points”
Tag Archives: C++
Polymorphism/C++/Important Points
In C++, polymorphism is achieved through function overloading and operator overloading The term overloading means a name having two or more distinct meanings. Overloaded function’ refers to a function having more than one distinct meaning. Overloaded functions have same name but different signatures (Number ofargument and type of argument) A function’s argument list is knownContinue reading “Polymorphism/C++/Important Points”
Classes and Objects/C++/Important points
A class binds data and associated functions together. A class in C++ makes a user defined data type using which objects of this type can be created. While declaring a class data members.. member functions access specifiers and class tag name are given. The member functions of a class can either be defined within theContinue reading “Classes and Objects/C++/Important points”
OOP/C++/Become master/Important points
β’Paradigm means organizing principle of a program.It is an approach to programming. β’Procedural or Modular programming means a list of instructions were given and each instructions tell the computer to do something. β’Procedural programming aims more ate procedures. In this Programs are organized in the form of subroutines or sub programs β’Modular programming combines relatedContinue reading “OOP/C++/Become master/Important points”
18 Important functions in C++
Functions:- /*In this post we are going to learn about some important functions in C++.Hope you will learn something*/ We are going to learn about:- cin cout strlen atof atoi abs pow strand/rand sqrt floor ceil max/min toupper/tolower strcmp strcat memcpy getline isdigit Functions in C++:- Cin:- β cin is used to read input fromContinue reading “18 Important functions in C++”
C++/Arrays and Structures/Important Points/Basic to Master
Arrays and Structures:- β’Structure is a user-defined which has the combination of data items with different data types. β’Structure is declared using the keyword ‘struct’. β’Structure elements are referenced using its object name followed by dot(.)operator and then the member name β’A structure without a name/tag is called anonymous structure. β’The structure elements can beContinue reading “C++/Arrays and Structures/Important Points/Basic to Master”
C++/Diving Deep/Important points/Basic to Master
Diving Deep into C++ β’A large program can typically be split into smaller sized blocks called functions. β’Functions can be classified into Predefined or Built-in or Library Functions and User-defined Functions. β’User-defined functions are created by the user. β’The void function tells the compiler that the function returns nothing. β’ The return statement returns aContinue reading “C++/Diving Deep/Important points/Basic to Master”