Tag: Class
Posts of Tag: Class
  1. C++ Program Defines a Class String and Overload == Operator to Compare Two Strings

    C++ Program That Defines a Class String and Overload == Operator to Compare Two Strings [Operator Overloading Concept] #include <iostream> #include <stdio.h> //used for gets() #include <string...Learn More
    C++ ProgramsClassProgramming Languages
  2. C++ Program Print Numbers From 1 to n not Using Loops, Recursion or Goto Statement

    C++ Program to Print Numbers From 1 to n Without Using Loops, Recursion or Goto Statement You may have made program to print numbers from 1 to n using loops, recursion or goto statement. But have you ever thoug...Learn More
    C++ ProgramsClassProgramming Languages
  3. Difference between Class and Structure

    **Difference between Class and Structure** Here you will learn about difference between class and structure. A class and a structure, both are user defined data types and understanding the difference between bo...Learn More
    ClassStructureProgrammingDev
  4. What are Local Classes in C++?

    What are Local Classes in C++? Classes that are defined and used inside a function or a block are known as local classes. Lets take an example. void demo(int x) //enclosing function { ….. ….. cl...Learn More
    C++ ProgramsTutorialsClassProgramming Languages
  5. Storage Classes in C

    Storage Classes in C Till now we have declared the variables in its simplest form. Declaration of variables contains two parts. Data type of the variable Storage of the variable Till now we are just declari...Learn More
    C ProgramsC TutorialsClassProgramming Languages
  6. C++ overloading binary operators, addition, subtraction, multiplication, division & comparison

    **C++ program for overloading binary operators, addition, subtraction, multiplication, division and comparison** In this program we will first create a class demo that contains two float data members a and...Learn More
    C++ ProgramsClassBinaryProgramming Languages
  7. Difference Between Constructor and Destructor

    **Difference Between Constructor and Destructor** Constructor and Destructor are the special methods which makes our crucial tasks easier while programming. If you have ever worked in programming language like ...Learn More
    ClassConstructorDestructor
  8. C++ program to swap two numbers using class

    C++ program to swap two numbers using class #include <iostream.h> #include <conio.h> class swap { int a, b; public: void getdata(); void swapv(); void display(); }; void swap:...Learn More
    C++ ProgramsClassProgramming Languages
  9. Anonymous Class in Java

    Anonymous Class in Java Anonymous class in Java is a class without name. Its name is decided by the compiler. It enables us to declare and instantiate the class at the same time. It is like local class except ...Learn More
    JavaClassProgramming Languages
  10. Abstract Class in Java

    Abstract Class in Java Before reading this tutorial I will recommend you to read about dynamic binding in java, because without knowing about dynamic binding you can’t understand the concept of abstract class ...Learn More
    JavaClassProgramming Languages
  11. C++ Object Slicing with Example

    C++ Object Slicing with Example In this tutorial, we are going to see how object slicing in C++. Before diving into the topic let us revise two simple concepts of object oriented programming. Inheritance Polym...Learn More
    C++ ProgramsClassProgramming Languages
  12. Formatting Strings with the Python Template Class

    Formatting Strings with the Python Template Class Introduction Python Templates are used to substitute data into strings. With Templates, we gain a heavily customizable interface for string substitution (or str...Learn More
    PythonStringClassProgramming Languages