How to call base class constructor in c#.net ?

This item was filled under [ Interview Questions ]

example:

class one

{

one()

{

}

}

//This is Inheritance of base class.

class two:one

{

//this is the way to calling base class constructor

two:one()

{

}

}

By Inheriting the base class we can reuse the functionality of  base class in to sub class

here one is base class two is sub class.

What is object ?

This item was filled under [ Interview Questions ]

Object is nothing but memory allocation for to store values and do some functions.The main usage of object is reusable.Objects are expose the behaviour of class.by creating objects we can use the fucntionality of class for various different type of actions.

example:

class one

{

int a,b,c;

public one()

{

a=0;

b=0;

c=0;

}

public int add(int a,int b)

{

c=a+b;

return c;

}

}

//here is the entry point.

static class entry_point

{

static void main()

{

one a=one();

console.write(a.add(2,3).toString());

//this is reusable

one b=one();

console.write(a.add(6,7).toString());

}

}

Tagged with: [ , ]

How to create class in c#.net?

This item was filled under [ Interview Questions ]

Class having the structure like c++ and java in c#.net and microsoft adding some functionality for class. the structure of class is below.

class class_name

{

//here we can declare members.

public | private | protected | protected internal member_name;

class_name()// this called constructor.

{

//here we can assign values for members.

member_name=values;

}

//here we can declare member function.

public | private | protected | protected internal function_name(arguments)

{

//here we can write the functionality of this function.

}

}

the above examples having public | private | protected | protected internal these are called access modifiers.

constraints of class

1. Constructor name and class name should be same.

2. Constructor should not have a return type.

3.By default protection level is private for constructor.

4.Class name should starts with alphabets.

Tagged with: [ , ]

What is class ?

This item was filled under [ Interview Questions ]

Class is user defined type, which can have members and member functions. and Class is a schema of objects. each and every objects will reflect the same structure of this class. while creating objects for class some memory allocated for storing values of members and do the functionality of member functions.

Tagged with: [ , ]

Introduction to ADO.NET

This item was filled under [ ADO.Net, Tutorials ]

The advent of ASP back in late 1996 when ADO 1.0 was released represented a new way of dynamically retrieving data from a database. Though ADO was at its very infancy then, and was something of an offshoot of DAO and RDO, nevertheless it represented a new bold direction. Each subsequent version of the technology leads us one step closer to ADO 2.6, when development came to an end. At this point, emerging from the shadows came the most revolutionary framework to date - .NET, with it the very powerful and mature ADO.NET.

This new data component, introduced with .NET, presented an exciting new approach to data access. Though the techniques, and logic used to connect to databases with ADO.NET weren’t startlingly different from those used with its predecessor, ADO.NET had a lot to offer. What was unique about this technology was the architecture beneath it all, its powerful approach to data management, and the flexibility in the next level of data-presenting devices.

ADO, for its time, was certainly successful. Although the re-releases of the technology hadn’t heralded dramatic change for ADO, it achieved what it had to within its own architecture. However, it was continually plagued by problems that surrounded its handling of disconnected data stores, and functioning properly and concisely with XML. This is where ADO.NET stepped in - these are the two things the new technology easily manages, as XML is the core component of the entire .NET Framework! ADO.NET was simply created to remedy all the deficiencies found in ADO, and provide developers with the power to achieve more with less.

In this article we’ll dive right into accessing data in .NET, and demonstrate the variety of options available to the ADO.NET developer for data access and presentation. This article is intended as a concise introduction to data access in .NET that’ll have you up to speed on the technology in no time.

Tagged with: [ , , ]

ASP.Net Tutorial for Beginners

This item was filled under [ Tutorials ]

This chapter gives an introduction about this site and the DOT NET tutorials we offer.

About this Tutorials

Welcome to ASP.NET Tutorial (Using VB.Net and C#). By completing the lessons and exercises in this book, you will acquire the skill and knowledge necessary to develop large enterprise web-based application in VB.Net or C#.

This tutorial is specially designed for the beginners and students who are in the starting point of their IT carrier. Plain and simple English is used throughout the tutorials so that every one can understand the concepts we are discussing.

Intended Audience

The targetted audience for this tutorials are:

  • Engineering and Computer Science Students
  • Beginner level programmers who want to develop their career in ASP.NET based web development.
  • Senior programmers who like to switch over to ASP.NET web programming.

What you need to know before you start ?

This tutorial required that students meet the following prerequisites:

  • Have a basic understanding of the Object-oriented programming concepts including classes, properties, methods and events.

What do we offer ?

The ASP.NET tutorials in this site includes several chapters. We are still adding more and more chapters everyday. This tutorials may be completed by end of the year 2005.

Many chapters in this tutorials include small small exercises you can try on your computer.

By end of this tutorials, we will start an advanced ‘Shopping Cart’ project. We will lead you through each and every step of developing a large dynamic website.

Also, some of the last chapters will guide you through the webmaster world which may help you develop and own your commercial websites and even make money from running your own websites.

Tagged with: [ , ]