< 1 2 3 >   Sort: Rank

What is the difference between Class and structure’s
What is the difference between Class and structure’s ? Following are the key differences between them :- ? Structure are value types and classes are reference types. So structures use stack and classes use heap. ? Structures members can not be declared as protected, but class members can be. You can...
2007-10-23, 6123👍, 0💬

What are similarities between Class and structure
What are similarities between Class and structure ? Following are the similarities between classes and structures :- ? Both can have constructors, methods, properties, fields, constants, enumerations, events, and event handlers. ? Structures and classes can implement interface. ? Both of them can ha...
2007-10-23, 4400👍, 0💬

Do interface have accessibility modifier
Do interface have accessibility modifier? All elements in Interface should be public. So by default all interface elements are public by default.
2007-10-23, 4872👍, 0💬

What is the use of “MustInherit” keyword in VB.NET
What is the use of “MustInherit” keyword in VB.NET ? If you want to create a abstract class in VB.NET it’s done by using “MustInherit” keyword.You can not create an object of a class which is marked as “MustInherit”. When you define “MustInherit” keyword for class you can only use the class by i...
2007-10-23, 4567👍, 0💬

Can you prevent a class from overriding
Can you prevent a class from overriding ? If you define a class as “Sealed” in C# and “NotInheritable” in VB.NET you can not inherit the class any further.
2007-10-23, 5781👍, 0💬

What are the different accessibility levels defined in .NET
What are the different accessibility levels defined in .NET ? Following are the five levels of access modifiers :- ã Private : Only members of class have access. ã Protected :-All members in current class and in derived classes can access the variables. ã Friend (internal in C#) :- Only members in curr...
2007-10-23, 7542👍, 0💬

If we inherit a class do the private variables also get
If we inherit a class do the private variables also get inherited ? Yes, the variables are inherited but can not be accessed directly by the class interface.
2007-10-23, 6280👍, 0💬

What is the difference between delegate and events
What is the difference between delegate and events? ã Actually events use delegates in bottom. But they add an extra layer on the delegates, thus forming the publisher and subscriber model. ã As delegates are function to pointers they can move across any clients. So any of the clients can add or remov...
2007-10-23, 5853👍, 0💬

What is the difference between Shadowing and Overriding
What is the difference between Shadowing and Overriding ? Following are the differences between shadowing and overriding :- ? Overriding redefines only the implementation while shadowing redefines the whole element. ? In overriding derived classes can refer the parent class element by using “ME” key...
2007-10-23, 5071👍, 0💬

What is shadowing
What is shadowing ? When two elements in a program have same name, one of them can hide and shadow the other one. So in such cases the element which shadowed the main element is referenced. Below is a sample code, there are two classes “ClsParent” and “ClsShadowedParent”. In “ClsParent” there is a...
2007-10-23, 6234👍, 0💬

Can we have shared events
Can we have shared events ? Yes, you can have shared event’s note only shared methods can raise shared events.
2007-10-23, 6716👍, 0💬

Can event’s have access modifiers
Can event’s have access modifiers ? Event’s are always public as they are meant to serve every one register ing to it. But you can access modifiers in events.You can have events with protected keyword which will be accessible only to inherited classes.You can have private events only for object in t...
2007-10-23, 7877👍, 0💬

Do events have return type
Do events have return type ? No, events do not have return type.
2007-10-23, 6249👍, 0💬

What are events
What are events ? As compared to delegates events works with source and listener methodology. So listeners who are interested in receiving some events they subscribe to the source. Once this subscription is done the source raises events to its entire listener when needed. One source can have multipl...
2007-10-23, 4829👍, 0💬

What is a delegate
What is a delegate ? Delegate is a class that can hold a reference to a method or a function. Delegate class has a signature and it can only reference those methods whose signature is compliant with the class. Delegates are type-safe functions pointers or callbacks. Below is a sample code which show...
2007-10-23, 6152👍, 0💬

What is difference between abstract classes and
What is difference between abstract classes and interfaces? Following are the differences between abstract and interfaces :- ? Abstract classes can have concrete methods while interfaces have no methods implemented. ? Interfaces do not come in inheriting chain, while abstract classes come in inherit...
2007-10-23, 4631👍, 0💬

What is a Interface
What is a Interface ? Interface is a contract that defines the signature of the functionality. So if a class is implementing a interface it says to the outer world, that it provides specific behavior. Example if a class is implementing Idisposable interface that means it has a functionality to relea...
2007-10-23, 4529👍, 0💬

What are abstract classes
What are abstract classes ? Following are features of a abstract class :- ã You can not create a object of abstract class ã Abstract class is designed to act as a base class (to be inherited by other classes). Abstract class is a design concept in program development and provides a base upon which oth...
2007-10-23, 4441👍, 0💬

How can we acheive inheritance in VB.NET
How can we acheive inheritance in VB.NET ? Inheritance is achieved by using “Inherits” keyword in VB.NET (For C# it is “:”). Simple Sample is provided in CD for understanding inheritance in folder There are two classes one is the parent “ClsParent” and second is t...
2007-10-23, 4748👍, 0💬

Class hierarchies (Inheritance and aggregation
What is difference between Association, Aggregation and Inheritance relationships? In object oriented world objects have relation and hierarchies in between them. There are basically three kind of relationship in Object Oriented world :- Association This is the simplest relationship between objects....
2007-10-23, 6405👍, 0💬

Can you explain different properties of Object Oriented Systems
What are different properties provided by Objectoriented systems ? Following are characteristic’s of Object Oriented System’s :- Abstraction It allows complex real world to be represented in simplified manner. Example color is abstracted to RGB. By just making the combination of these three colors w...
2007-10-23, 6196👍, 0💬

What is the relation between Classes and Objects
What is the relation between Classes and Objects ? They look very much same but are not same. Class is a definition, while object is a instance of the class created. Class is a blue print while objects are actual objects existing in real world. Example we have class CAR which has attributes and meth...
2007-10-23, 4425👍, 0💬

What’s an Object
What’s an Object ? It is a basic unit of a system. An object is an entity that has attributes, behavior, and identity. Objects are members of a class. Attributes and behavior of an object are defined by the class definition.
2007-10-23, 4272👍, 0💬

What’s a Class
What’s a Class ? A class describes all the attributes of objects, as well as the methods that implement the behavior of member objects. It’s a comprehensive data type which represents a blue print of objects. It’s a template of object.
2007-10-23, 4101👍, 0💬

< 1 2 3 >   Sort: Rank