+ 2

What Is the Importance of class In Any Programming Language And In What Way Class Is Related to Objects.

I Want A Detail Explanation On classes And Object with Example.And Their Advantages on Taking A Eye At C#

2nd Apr 2017, 6:06 AM
Deepak So Smart
Deepak So Smart - avatar
5 Answers
+ 12
class Type // a class { int Object; // an object of the class } Classes, which supports the use of data specifiers (and hence encapsulation), allows you to define your own data structure for later use. You may read more about OOP (Object-oriented programming) on the net.
2nd Apr 2017, 6:19 AM
Hatsy Rei
Hatsy Rei - avatar
+ 12
Classes map out what an object holds as data and can do with methods (they're often compared to blueprints). They're used to represent a concept that is too complicated for one variable, and classes and objects can be reused, even in other programs. Ex: I could make a class for a PlayingCard that has a Suit and a Value. Then, I can use 52 unique Card objects in a Deck class, that can shuffle the deck and deal cards. This would be harder to model without objects.
2nd Apr 2017, 7:07 AM
Tamra
Tamra - avatar
+ 2
U r asking about OOP(Object Oriented Programing). u can star SoloLearn C# course it has the answer u looking for. for now: "classes describe the type of objects, while objects are usable instances of classes. So, the act of creating an object is called instantiation. Using the blueprint analogy, a class is a blueprint, and an object is a building made from that blueprint. " or check this https://msdn.microsoft.com/en-us/library/mt656686.aspx
2nd Apr 2017, 6:12 AM
Eranga
Eranga - avatar
+ 1
Long story short, it helps to simulate real world in side computer world (program ) Long Story: "Object Oriented Programming has great advantages over other programming styles: Code Reuse and Recycling: Objects created for Object Oriented Programs can easily be reused in other programs. Encapsulation : Once an Object is created, knowledge of its implementation is not necessary for its use." for more info:http://searchmicroservices.techtarget.com/definition/object-oriented-programming-OOP or search on internet abt OOP.
2nd Apr 2017, 7:58 AM
Eranga
Eranga - avatar
0
In The View of programmer how is this Useful
2nd Apr 2017, 6:27 AM
Deepak So Smart
Deepak So Smart - avatar