C/C++

Static Data Members

Submitted by Muzammil Muneer on

Static data members

In this part you will learn: 1. What is static data member? 2. Where static data members are used? 3. Syntax of Static data members 4. Writing program with Static data members 5. Showing output Static data member Static data members are those data members which retain their values, i.e. Static data members store the latest value in them so that the value will be used for next time when the function that makes use of static data member is called.

Copy Constructor

Submitted by Muzammil Muneer on

Copy Constructor

In this part you will learn: 1. What is copy constructor? 2. Usage of copy constructor 3. Syntax of Copy Constructor 4. Writing program with copy constructor 5. Showing output Copy Constructor A copy constructor is a special constructor that initializes a new object from an existing object.

Constructor and Destructor

Submitted by Muzammil Muneer on

Constructor and Destructor

In this part you will learn: 1. What are Constructor and Destructor? 2. Types of Constructor 3. Syntax of Constructor and Destructor 4. Writing program with constructor and destructor 5. Showing output Constructor Constructor is a function of the class which is called at initialization or declaration of an object. To initialize values to the members of the function we use this function.

Setters And Getters

Submitted by Muzammil Muneer on

Setters and Getters

In this part you will learn: 1. What are setters and getters? 2. Why we need setters and getters? 3. Program using setters and getters 4. Showing output What are Setters and Getters? As the name suggests, setters are functions used to set values whereas getters are used to get values. Setters and getters functions are usually public data members of the class. Setters and getters are used for private or protected member variables.

More About Access Specifiers

Submitted by Muzammil Muneer on
In this part you will learn: 1. Types of access specifier 2. Different uses of different access specifiers 3. Using access specifiers in Code Types of Access Specifiers As we have discussed earlier, there are three types of access specifier we use in c++ which are given below. • Private • Public • Protected Private This is the access specifier which is set as default. i.e when the programmer doesn't give the access specifier. C++ considers it as a private.

Learn Object Oriented Programming in C++

Submitted by Muzammil Muneer on
This book sheds light on the basic concepts of object oriented programming in C++. The main aim of this book is to provide these concepts in an easy to understand way, so that programming students can learn and reinforce their concepts related to object oriented programming. The book uses illustrated examples which will help students understand, how to apply the concepts they have learned in this book, in real programming practices. In this book you will learn the core concepts of object oriented programming which includes classes, inheritance, polymorphism, etc.

Getting Started With Object Oriented Programming

Submitted by Muzammil Muneer on
In this part you will learn: 1. Why we need Object Oriented Programming approach? 2. Classes 3. Access specifiers 4. First program using Classes 5. Dot operator 6. Showing output Why we need Object Oriented Programming approach? As we have already learned in c how to perform different operations and process information, using that ways we can write small programs but if we are writing programs for very large projects this approach isn’t really a good one.

Mathematical Operation

Submitted by oursharingclub on
//Author :LearningPen //Date : 28/9/2014 //MyBolg :http://learningpen.blogspot.com/ //Language : C++ //Tool : Dev C++ Notice: Reference http://www.sourcecodester.com/cc/7937/c-functions-basic-mathematical-operation.html. According to some of his code, modified by myself,I also use a class structure. Thank you for using. MyBlog:http://learningpen.blogspot.com/ welcome. ^-^

How to Calculate Any Day of the Week?

Submitted by oursharingclub on
Author : Walter Date : September 27, 2014 Firday MyBlog : http://learningpen.blogspot.com/ Tool : Dev C++ Language : C++ Function : Calculate any day of the week? #include #include // for floor() #include // for getch() #include // for exit() #include // for system() using std::cout; using std::cin; //======================= void Menu( void ); int main( void ) { Menu(); return 0; }// End of main

Password Security Version 2.0

Submitted by oursharingclub on
Password.cpp Author : oursharingciub Date : September 26, 2014 Firday Email : [email protected] Tool : Dev C++ Language : C++ Notice: Reference Mr. Jake Rodriguez Pomperada programming #include #include #include #include //system(), Sleep( ) #include using namespace std; const int PASSLEN= 7 ; //The length of password string PassGet( void ); // Get the password void Menu( void ); //The start