Beruflich Dokumente
Kultur Dokumente
Stage Events/Method
g) Operating system.
one.
1) Array list
2) Hash table
3) stack
4) Dictionary
5) Queue
Object-Oriented concepts?
Class: The formal definition of an object. The class acts as the template from
which an instance of an object is created at run time. The class defines the
properties of the object and the methods used to control the object’s
behaviour.
Object: An object is an instance of a class.
Inheritance: A class that derives from another class - known as the base class
- inherits the same methods and properties. This promotes reuse and
maintainability.
a) Yes.
41) What diff b/w overloading and overriding? How can this be .net
Overriding : derived classes follow the same base class method signatures.
In c# : we use :
44)if I want to override a method 1 of class A and this class B then how do u
declared
answer :
public virtual void method1(){ } ..In class A. public override void method1()
{}…………..In class B.
Protected friend : provides access for that particular class and to its child
classes.
Multi level inheritance: ex. Public void Person () {}, Public void Customer :
person {} , Public void employee : customer{}.