Dec 29, 2019

INTERFACE ALLOWS PERFORMING MULTIPLE INHERITANCES IN C#


INTERFACE ALLOWS PERFORMING MULTIPLE INHERITANCES IN C# In c #sharp normally we can’t perform the multiple inheritances as we done single or multilevel inheritance the compiler restricted to do such a process. But by using interface we are able to perform multiple inheritances that is explaining with the example below. POINT TO PERFORM MULTIPLE INHERITANCES When we going to perform multiple inheritance we should keep on eye to the following...

PARTIAL CLASS IN C#


partial class in c# PARTIAL CLASS             The ability of splitting of a single class into multiple classes with the help of  the keyword ‘Partial’ known as partial class. This keyword is useful to split the functionality of method and interface. SYNTAX             [<Modifier>] partial class <Name> {   Class...

INTERFACE (class and interface) IN C#


interface in c# INTERFACE             “Interface is mechanisms in which we declare abstract members only, and it’s allowing us to build multiple inheritances.” SYNTAX Public Interface I<name> {   Defining abstract members; } Public class <name>: I<name> {   Implementation of abstract member; } POINTS TO DEFINE INTERFACE            ...

Dec 28, 2019

ABSTRACT CLASS AND ABSTRACT METHOD


abstract class and method ABSTRACT CLASS             If any class defines abstract method or abstract member in it then the class will be an abstract class. We will use abstract modifier to indicate that that is an abstract class, like this SYNTAX             Public abstract class classname           ...

POLYMORPHISM IN C#


polymorphism definition  POLYMORPHISM             The process of re-implementation of parent class member in child class with same name but different behavior, state with the help of keyword ‘virtual’ and ‘Override’. RULE TO PERFORMING POLYMORPHISM             We have to follow some rule to perform polymorphism.    ...

Dec 23, 2019

HALF ADDER AND FULL ADDER


HALF ADDER             Half adder is like a small circuit that performs an addition tasks on only two inputs 0 and 1 for each input and gives us two outputs one is sum and the second is carryout number. Which consist of and exclusive OR gate that and AND gate including two inputs, where X-OR gate perform Sum and AND gate gives carry out number, which is more explain by logic diagram, logic...