Please tell me deeply about classes and objects
My Question are:
What is class?
Why we use class?
How can we use class?
what do help class?
Please tell me and also tell how can I learn about class?

6 Years
Discussion Span
Last Post by thines01

Reading a tutorial on the net will probably help you more than any explanation you could get here but briefly: in object oriented programming a class allows you separate code into units (classes) for ease of reuse and to keep relevant code functions together.
Say you created a class called Dog. You could then put dog related methods into this class such bark() or dragButtOnFloor(). Then in your calling code you first create an instance of the Dog class and then call it's methods. In c#

Dog dog = new Dog();

Classes also allow for things like inheritance which is another topic you will want to learn about too.
But, as I said, an online resource or book will provide the depth you need to learn these concepts.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.