Click here to Skip to main content
15,893,904 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am ddveloping an application.
It should be fully Object Oriented concepts.

Until now I have not used these types of concepts, so I want suggestions on How to Implement OOP Concepts.

Thanks.
Posted
Updated 12-Apr-11 21:14pm
v2
Comments
Dalek Dave 13-Apr-11 3:14am    
Edited for Grammar, Syntax and Readability.
girish sp 13-Apr-11 3:34am    
its oops not opps..correct it..

Link[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Apr-11 2:29am    
Probably this would also provide reasonable introduction, my 5.
Please see my Answer as well.
--SA
Dalek Dave 13-Apr-11 3:14am    
Good Link
This Question is not quite correct, because most of C# (but in fact .NET) is strongly oriented to OOP, and non-OOP aspects of it takes relatively modest place. There is nothing to say about how to implement OOP concept but a lot to how to use OOP properly and effectively.

Nothing can help here but regular education on OOP, C# and .NET. The implementation and best OOP practices will come with it. Anything beyond this simple idea goes well beyond the format of CodeProject Questions/Answers. You need to learn and start practicing OOP (maybe in the form of simple exercises at first) before you can ask further Questions here at CodeProject.

Please see other Answers and my comments to them — the referenced material can help you.

Good luck,
—SA
 
Share this answer
 
v2
Comments
anilkumar1986 11-Apr-11 2:26am    
Than you
Sergey Alexandrovich Kryukov 11-Apr-11 3:34am    
You're welcome.
Will you formally accept the Answer?
Thank you.
--SA
Monjurul Habib 11-Apr-11 16:11pm    
nice description.
Sergey Alexandrovich Kryukov 11-Apr-11 16:21pm    
Thank you, Monjurul,
--SA
girish sp 13-Apr-11 3:32am    
SAK you are right..you can use concepts anywhere,what matters is using it effectively:)
my 5!!
Hope this[^] might help you.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 11-Apr-11 2:25am    
More or less reasonable introductory material, adequate enough. My 5.
Please see my Answer as well.
--SA
Dalek Dave 13-Apr-11 3:14am    
Another Good Link
[no name] 14-Apr-11 3:32am    
Thanks Dalek
You can find the oops and others C# related question ans in http://guru-code.blogspot.com/[^]
 
Share this answer
 
Comments
Dalek Dave 13-Apr-11 3:15am    
I edited for Link availability.
Hi,

First you can find what are the common methods for the your Applcation then you can used the OOPs concepts.It is provided the reusabilty of the applications.

Example:Inheritance

//Runtime polymorphism

public class Customer
{
public virtual void AddCustomer(string CustomerID,String CustomerName,string Address)
{
//Implimenation is different 
}
}
public class CustomerData:Customer
{
public override void AddCustomer(string CustomerID,String CustomerName,string Address)
{
//Here is implimentation is chages you can do
}
}


Regards,
Narasimha
 
Share this answer
 
v3
Comments
anilkumar1986 11-Apr-11 2:00am    
Reusability of the application is good by Using Opps Concepts Especially the Abstract Methods iam not getting nd abstract classes
Narasima 11-Apr-11 2:16am    
Hi,
Abstract class is supports for the Implimentation as well as unmplimentation methods,Abstract class is should be act as base class becoz of we can not create an object of that class.with in Abstract class all mehods are should be public with aAbstract methods.
anilkumar1986 11-Apr-11 2:23am    
How to Use interface in abstract class what is accesspecifer we should use
Sergey Alexandrovich Kryukov 11-Apr-11 2:28am    
This is certainly about a central point in OOP, but this Answer explains nothing to OP. Also, spell correctly: must be "implementation", what's "is chages", etc.
--SA
anilkumar1986 11-Apr-11 2:43am    
Hi Iam in learning stages so can u give me the clear Description of Classes so how many ways of Classes we can use in Opps.IS STATIC IS a class or keyword.If i ask anything wrong please excuse me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900