Jump to content
ChetanaSforum
Sign in to follow this  
vikramit

.net faq

Recommended Posts

Hey everyoneI need help of you to clear a doubt .iIs it possible to create a class and allow it to inherit in derived class but forbid the creation of object for base class.I hope you understand the question . Thanks for remark.

Share this post


Link to post
Share on other sites

declare the base class as Abstract.

declare the base class as Abstract.

Its obvious we can use abstract keyword for This purpose. But take a scenario of ,real time project if you use it you putting extra pressure on other programmer to define your abstract method in derived class. So its not real time approach. Edited by vikram verma

Share this post


Link to post
Share on other sites

Declare the base class as "Abstract " class.it is the perfect solution for ur questn

If i use a constructor in protected mode for base class then. do i require abstract key word?

Share this post


Link to post
Share on other sites

Here are links for ASP.NET, C# and SQL Server Interview Questions and Answers asked in MNCs and Other IT

 

[*]Barclay Capital

[*]Broadridge

[*]CGI

[*]CII

[*]CTS (Cognizant Technology Solutions)

[*]Deloitte

[*]iGATE

[*]Inooga Solutions

[*]Kenexa

[*]LiquidHub

[*]Mahindra Satyam

[*]MindTree

[*]Olivegreen

[*]ProKarma

[*]RealPage

[*]Semantic Space

[*]TCS (Tata Consultancy Services)

[*]ValueLabs

[*]Wipro

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  



×