overloading to comparison operators (== , != )to a struct of name MySize contains m_Width and m_Height
overloading to comparison operators (== , != )to a struct of name MySize contains m_Width and m_Height
Conversion Operator to enable the user to convert MyIntStruct type to integer using casting.there are 2 public functions (overloading to conversion operator)to convert from integer to MyIntStruct type
A list of type shape(Base class)contains 3 elements Rectangle,Triangle and Circle then call function Draw() to print via screen which shape to be drawn .
this example shows you how the rules of overloading methods by changing the numbers of passed parameters.
a simple program to show you how to implement Polymorphism by implementing base class and 2 derived classes.all contains the same function Print() but the implementation differs based on the caller Ty
a base class to add 2 numbers and a Derived class inherits it and add a new method
This example features a simple way to perform inheritance. It creates a class called Circle that contains calculations for a circle based on its radius.
In this example, the class Square must provide an implementation of Area because it derives from ShapesClass:
you will learn how to implement and use the abstract class and inherit it
a person class contain of person's first name and last name and date of birth
* it'll show u how to build a simple class with multiple overloaded Constructors and how to use them