Posts

Showing posts from January, 2010

Association, Aggregation, Composition

Association, Aggregation, Composition When we have only one relationship between objects that may be Association . Aggregation and Composition.             In details             Association :             This is relation where each object has it own life cycle , independent  and no owner. Ex:-             Will take a common example of project and developer             A project will be having multiple developers and developer can work for different projects. There is a relationship but both are independent. Both can create and delete independently.   Aggregation: This is a specialize form of Association where all object have their own lifecycle has ownership on child object and the child object cannot belongs be related to another parent object. Ex:-             Will take an example of Departments and developers             A developer can be only in one department like dotnet, java etc., but if we delete the Department object still the Developer object exists. Th

ASCII Key values

Char. Dec. hex Comments NUL 00 00 SOH 01 01 ^A (control A) STX 02 02 ^B ETX 03 03 ^C EOT 04 04 ^D ENQ 05 05 ^E ACK 06 06 ^F Acknowledge BEL 07 07 ^G Bell or tone BS 08 08 ^H Backspace HT 09 09 ^I Horizontal Tab LF 10 0A ^J Line Feed VT 11 0B ^K Vertical Tab

Difference between Interface and abstract class

Introduction: Hi everyone, in this article I will explain what is abstract class & Interface, what their purpose and what is the difference between them. Back Ground: Before starting I want to give a brief wind up on something like 1. Class: It is a collection of methods, attributes, Properties etc., all the methods in the class are concrete classes (definition already exists). 2. Concrete Methods: A method which contains the implementation. EX:- Public void ConcreteMethod() { Console.WriteLine(“Method with Implementation”); } 3. Abstract Methods: opposite of abstract methods,i.e. method which does not have implementation or body. Ex:- Public void AbstarctMethod(); 4. As we know both the abstract class and interface cannot be instantiated, because these are used for implementing the inheritance (which mean to derive), because of this we can use these by deriving in our class. Abstract Class: Definition: This is a class, which is a combination of both concrete and abstract methods (