Posts

B.TECH CSE/ECE(CN): UNIT 1 (INTRODUCTION OF NETWORKING AND OSI LAYERS)

Hi guys, We covered our Unit 1 and basic introduction of computer networks and protocols. Unit 1 study materials  OSL Layers Intro and basics  

B.TECH CSE(MP) Unit 1: Introduction of Mp,MC

Hi guys, As you all know well we going to complete our unit 1 soon here uploading study materials for that Mp 8085 Link to download

LAB Practical V

a) Write a program to show the working mode of try, throw and catch blocks in C++

LAB Practical IV

a) Write a program to show overriding Base class members in a Derived class b) Write a program to show Complexity and ambiguity in Inheritance  

LAB Practical III

a) write a c++ program to implement binary and unary operator overloading  

LAB Practical II

i) Write a c++ program to show static member function and static member data. ii) Write a c++ program to show constructor, destructor, inheritance and dynamic memory allocation in same program.

Operator Overloading

Image
Operator overloading is an important concept in C++. It is a type of polymorphism in which an operator is overloaded to give user defined meaning to it. Overloaded operator is used to perform operation on user-defined data type. For example '+' operator can be overloaded to perform addition on various data types, like for Integer, String(concatenation) etc. Almost any operator can be overloaded in C++. However there are few operator which can not be overloaded. Operator that are not overloaded are follows scope operator - :: sizeof member selector - . member pointer selector - * ternary operator - ?: Operator Overloading Syntax Implementing Operator Overloading Operator overloading can be done by implementing a function which can be : Member Function Non-Member Function Friend Function Operator overloading function can be a member function if the Left operand is an Object of that class, but if the Left operand is different, then Operator ove...