Inheritance in c++

Inheritance in c++ Inheritance in c++ is described that Deriving a new from an existing class is known as inheritance. In inheritance, the existing class is known as the base class or parent class, and the new class is known as the derived class or child class.   Inheritance concept is basically used to reuse… Continue reading Inheritance in c++

Published
Categorized as c++

Constructor & Destructor in C++

Constructor & Destructor The syntax of constructor and destructor is the same. The constructor name is totally same as the class name and the class name is used for the name of the destructor, with a tilde ~ sign as the prefix to it. What is Constructor? Constructor is a method. Constructor name must be same as… Continue reading Constructor & Destructor in C++

Published
Categorized as c++

Class and Object in C++

Class:- The major destinations of Class and object in c++ are given below:- The class is used to create the blueprint or architecture. Class is the combination of data member and member function.Class is a user-defined data type, which holds its own data members and member functions or method, which can be accessed and used… Continue reading Class and Object in C++

Published
Categorized as c++

Function in C++

FUNCTION in C++ A function in c++ is a group of statement that together performs a particular task. Every C++ program contains a function, that is the main function. Main () is the entry point of the program. At this point, the execution of the program is started. Syntax:- void main() { ———- ———- } What… Continue reading Function in C++

Published
Categorized as c++

CONTROL STRUCTURE in C++

CONTROL STRUCTURE in C++:- A control structure is a block of programming that analyzes variables and determines the order in which statements are executed. Loop Control Structure:- For For(initialize counter; test condition; re-evaluation parameter) { Statement; Statement; } While while(test condition) { Body of loop }   Do-while do { statement; } while(condition) Selection Control Structure:- Switch… Continue reading CONTROL STRUCTURE in C++

Published
Categorized as c++

What is Command Line Argument in C

COMMAND LINE ARGUMENT:- Command line argument in C is a mechanism by which a program takes input during runtime. The main function takes two parameters in a command line argument such as Argument Counter:- It counts the number of argument on the command line. Argument Vector:- Is a pointer array which points to each argument… Continue reading What is Command Line Argument in C

Published
Categorized as c++

Datatype in c++

Data type in C++ The Data type in c++ are divided into 4 types:-       primitive:             bool, char, int, float, double, empty:                  void     derived:                array, pointer, reference    user-defined:      enum, typedef, struct, union, and class some basic or primitive data type with an example:- bool:- Boolean can represent true… Continue reading Datatype in c++

Published
Categorized as c++

What is the difference between POP and OOP?

Difference between POP and OOP? The difference between pop and oop are given below:- Subject of Difference Procedure Oriented Programming (POP) No. Object-Oriented Programming (OOP) Problem decomposition Decompose the main problem in small parts called functions. 01 Decompose the main problem in small parts called objects. Connections of parts Connect small parts of the program… Continue reading What is the difference between POP and OOP?

Published
Categorized as c++, java

What is C++ ?

What is C++? what is C++, as we all know is an extension to C language and was developed by Bjarne Stroustrup at bell labs C++ is an open source, middle label, preprocessed, compiled, assembled, linked and loaded, procedure-oriented and object-oriented, statically typed, general-purpose programming language. Open source:- C++ is developed by an ISO standard committee. The… Continue reading What is C++ ?

Published
Categorized as c++