CREATEPROCEDURE[dbo].[GetPermission]@userName varchar(50),@permission int output
ASBEGINselect@permission = PERMISSION from USERS where UserName =@userName
END;
CLASS STRUCTURE Classes are of reference types. Structs are of value types. All the reference types are allocated on heap memory. All the value types are allocated on stack memory. Allocation of large reference type is cheaper than allocation of large value type. Allocation and de-allocation is cheaper in value type as compare to reference type. Class has limitless features. Struct has limited features. Class is generally used in large programs. Struct are used in small programs. Classes can contain constructor or destructor. Structure does not contain constructor or destructor. Classes used new keyword for creating instances. Struct can create an instance, without new keyword. A Class can inherit from another class. A Struct is not allowed to inherit from another struct or class. The data member of a class can be protected. The data member of struct can’t be protected. Function member of the class can be virtual or abstract. Function member of the s...
using System; namespace calcu { public class calculator { public void sum(int x, int y) { int z = x + y; Console.WriteLine(z); } public void sub(int x, int y) { int z = x - y; Console.WriteLine(z); } public void sqrt(double x) { double...
Comments
Post a Comment