Geeks With Blogs
Shashi Kumar August 2014 Entries
OOPS Concepts
I am trying to explain some of the basic oops Concepts in a simple way. Class:A class is a blueprint of an object that contains variables for storing data andfunctions to perform operations on the data.It is a collection of objects.A class will not occupy any memory space and hence it is only a logicalrepresentation of dataObject:It is a real time entity.An object is an instance of a class.An object can be considered a “thing” that can perform a set of related activities.What is encapsulation?Encapsulation ......

Posted On Thursday, August 14, 2014 2:46 AM

Coding Standard for C#
Coding Standard for C#We Usually use two type of naming Conventions.1. Camel Casing : First 2. Pascal Casing1. Declaration of variable should be in Camel casestring empName=string.Empty;2. Class Name should be in Pascalpublic class HelloWorld(){}3. Method name should be Pascalpublic string SayHello( String name ){return name;}4. All Constant should be in Caps or Upper Case5. “_” should not be used while giving parameter and variable Namestring emp_Name;It should be like thisstring empName;6. Parameter ......

Posted On Thursday, August 14, 2014 2:41 AM

C# Constructor in Detail
Constructor is a special method of a class which will invoke automatically whenever instance or object of class is created. Constructors are responsible for object initialization and memory allocation of its class. If we create any class without constructor, the compiler will automatically create one default constructor for that class. There is always at least one constructor in every class. Here you need to remember that a class can have any number of constructors and constructors don’t have any ......

Posted On Thursday, August 14, 2014 2:35 AM

Copyright © Shashi Kumar | Powered by: