26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Public Class ClsChild<br />

Inherits ClsParent<br />

‘ this is child and a special parse function is added which will<br />

also parse “/”<br />

Public Function ParseBackSlash()<br />

Dim PstrData As String<br />

PstrData = Me.Parse()<br />

PstrData = Replace(PstrData, “/”, “”)<br />

Return PstrData<br />

End Function<br />

End Class<br />

Above is the source code for “ClsChild” which does the remaining work.It adds extra<br />

functionality by parsing “/” junk character’s of the data.<br />

Note:- Strdata was accessible only because it was defined as protected in the parent class.<br />

Figure :- 6.1 Inheritance in action<br />

(I) What are abstract classes ?<br />

Following are features of a abstract class :-<br />

√ You can not create a object of abstract class<br />

* How would you describe yourself ?<br />

101

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!