C-Sharp

57
688 reads

February 12, 2013

comparison operator


overloading to comparison operators (== , != )to a struct of name MySize contains m_Width and m_Height

170
1434 reads

February 12, 2013

simple Conversion Operator


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

126
2334 reads

February 12, 2013

overload + and ++ oprators


overload the operator ++ and + to the implemented class Widget

56
1746 reads

February 12, 2013

drawing shape


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 .

346
3432 reads

February 12, 2013

method_overloading_polymorphism


this example shows you how the rules of overloading methods by changing the numbers of passed parameters.

231
1978 reads

February 12, 2013

simple Polymorphism


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

250
3915 reads

February 12, 2013

singular inheritance


a base class to add 2 numbers and a Derived class inherits it and add a new method

37
2083 reads

February 12, 2013

spere


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.

103
1773 reads

February 9, 2013

abstraction


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

287
4586 reads

February 8, 2013

person class


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