Software job search
.net sql interview questions
  The best place for technical interview questions

 
Home.netSql serverAsp.netC#Vb.netAdo.netAjaxMcpd dumpsWord count tool
.net oops interview questions
 
Question 1   What is a class

A class can be defined as a template or a definition or a blueprint of the object which is created from it.

for example car is a class and audi, bmw are objects of car class



Question 2   What’s an object

A memory instance of a class is known an object in oops.

for example television is a class and sony, samsung are objects of television class




Question 3   What is the relation between classes and objects

A class can be defined as a template or a definition or a blueprint of the object which is created from it.
for example car is a class and benz, bmw are objects of car class

a memory instance of a class is known an object in oops.
for example television is a class and sony, samsung are objects of television class



Question 4   What are basic pillars of an object-oriented system

There are 4 basic pillars of an object-oriented system

1) abstraction
2) encapsulation
3) inheritance
4) polymorphism

abstraction – abstraction is the process of hiding unnecessary characteristics and exposing only relevant characteristics to the outside world.

encapsulation - abstraction is the process of hiding internal implementation of a class. for example using public get set property to access a private variable inside a class.

inheritance – inheriting characteristics of an existing class (parent class) to another class (child class) is called inheritance. inheritance helps to increase the reusability of the code.

polymorphism – the ability to perform one operation though multiple methods is known as polymorphism. there are two types of polymorphism run time polymorphism (method overriding) and compile time polymorphism (method overloading)



Question 5   What is association,aggregation and composition

They are used to define the relationship between the objects
association – both the objects are independent of each other. one uses another to perform a task.

for example a computer uses a router to access internet.

aggregation - both the objects are independent but one object will be part of another object.
for example a company and an employee. employee is part of the company. employee will still exist even if the company is deleted.

composition – child object cannot exist without the parent object. a branch cannot exist without a tree.



Question 6   How can we acheive inheritance in vb.net

Vb.net uses “inherits” keyword to achieve inheritance whereas in c# “:” is used to achieve inheritance




 Rate this page
     
 24 votes , average 4 out of 5
1 2 3 

Reader's opinions -

No comments
Loading

 
.net interview questions
Asp.net interview questions
C# interview questions
Vb.net interview questions
Ado.net interview questions
Ajax interview questions
Wcf interview questions
Wpf interview questions
.net threading interview questions
.net remoting and webservices interview questions
.net caching interview questions
.net oops interview questions
Sharepoint interview questions
Jquery interview questions
Silverlight interview questions
Linq interview questions
Wwf interview questions
Java interview questions
Sql server interview questions
Ssis interview questions
Ssrs interview questions
Data warehousing interview questions
Data mining interview questions
Oracle interview questions
Php interview questions
Design patterns interview questions
Uml interview questions
Mcpd dumps
Pmp practice tests

This site is best viewed with Internet Explorer 7.0 or higher, Firefox 2.0 or higher, Chrome at a minimum screen resolution of 1024x768.
A complete solution to interview questions
free matrimonial website      
web hosting plans |  compare vps hosting plans |  Compare dedicated hosting plans |  Compare linux hosting plans |  Compare cloud hosting plans |  Compare windows hosting plans | 
Hosting reviews |  GoDaddy reviews | 
Support Wikipedia