By heera babu Tuesday, 19 July 2016 Cpp What are Static data members ? The data member of a class can be declared as static. A static members variables certain special characteristics it is initialized to zero... Read More →
By heera babu Monday, 22 February 2016 Cpp Write a program in C++ for Unary operator overloading #include<iostream.h> class load { int m,n; public: load() { m=0, n=0;} ... Read More →
By heera babu Monday, 22 February 2016 Cpp Defining Operator overloading An operator could be overloaded with the help of a special function called operator function, the general form of an operator function is: ... Read More →
By heera babu Monday, 22 February 2016 Cpp Name of the Operator that cannot be overload Name of the Operator that cannot be overload as follow: Class member access operators(.,.*) Scope resolution operator(::) Size operator ... Read More →
By heera babu Monday, 22 February 2016 Cpp Name the Operators that can be overloaded Operators that can be overloaded Read More →
By heera babu Monday, 22 February 2016 Cpp Restriction on Operator Overloading Cannot change: 1. Precedence of operator (order of evaluation) Use parentheses to force an order of operators. 2. Associativity (left-t... Read More →
By heera babu Monday, 22 February 2016 Cpp What is Operator overloading ? Operator overloading is one of the exciting features of C++. All the built-in operator can be applied to basic data types (int, float, cha... Read More →
By heera babu Monday, 22 February 2016 Cpp What is Polymorphism? Polymorphism simply means “one name, multiple forms”. Read More →
By heera babu Monday, 22 February 2016 Cpp What is Friend Class? With the possibility of friend function, we can also define a class as a friend of the another one, granting the second class to access the... Read More →
By heera babu Saturday, 13 February 2016 Cpp How Friend function works as a bridge between classes A Friend function can be used as a common function between two classes as it can become a friend of both the classes and can use their priv... Read More →
By heera babu Saturday, 13 February 2016 Cpp Write a program using friend function Class sample { private: int a, b; public:void setvalue() { a=20; b=40; } ... Read More →
By heera babu Saturday, 13 February 2016 Cpp What is Friend Function? Private member function can’t be accessed from outside the class. That is a non-member function can’t access the private data of the class.... Read More →
By heera babu Saturday, 13 February 2016 Cpp Objects as function arguments Like any other data type, an object may be passed as a function argument. It can be done in two ways a copy of an entire object is passed ... Read More →
By heera babu Thursday, 11 February 2016 Cpp Working of Objects as function arguments in C++ programming Like any other data type, an object may be passed as function argument. It can be done in two ways a copy of entire object is passed to fu... Read More →
By heera babu Thursday, 11 February 2016 Cpp What are Destructors? A destructor as the name implies used to destroy the objects that have been created by constructor. Like a constructor , the destructor is ... Read More →
By heera babu Thursday, 11 February 2016 Cpp What is Copy Constructors? A copy constructor is used to declare and initialize an object from another object. class integer { private : int m; pub... Read More →
By heera babu Thursday, 11 February 2016 Cpp What is Parameterized Constructors? The constructors that can take arguments is known as parameterized constructors. With the parameterized constructors we can initialize obje... Read More →
By heera babu Thursday, 11 February 2016 Cpp What are different Types of constructor ? There are three type of constructors Default constructors. Parameterized constructors . Copy constructors . A constructors that accep... Read More →
By heera babu Thursday, 11 February 2016 Cpp What are Constructors and Destructors ? Class is a user defined data type that behave very similar to built-in data types. We should able to initialize a class type variable (obje... Read More →
By heera babu Thursday, 11 February 2016 Cpp What is Const Object? Making variables const ensures that their values are not accidentally changed. Just like the built-in data types (int, double, char, etc…... Read More →