Connecting Tech Pros Worldwide Help | Site Map

what is the use of class?why we have to use?

Newbie
 
Join Date: Nov 2009
Location: R.N.Reddy nagar,hyderabad
Posts: 5
#1: 2 Weeks Ago
please anybody teach programming languages for me
best answer - posted by Banfa
Look up

Encapsulation
Inheritance
Polymorphism

Those are the 3 major paradigms that are implemented through classes. Wikipedia has passable explanations of all three.
Banfa's Avatar
AdministratorVoR
 
Join Date: Feb 2006
Location: South West UK
Posts: 6,158
#2: 2 Weeks Ago

re: what is the use of class?why we have to use?


Look up

Encapsulation
Inheritance
Polymorphism

Those are the 3 major paradigms that are implemented through classes. Wikipedia has passable explanations of all three.
Expert
 
Join Date: Mar 2008
Location: Naperville, Illinois U.S.
Posts: 828
#3: 2 Weeks Ago

re: what is the use of class?why we have to use?


Quote:

Originally Posted by varunreddy View Post

please anybody teach programming languages for me

Do you already know other computer languages [which ones?] and seek to add C++; or are you in the process of learning your first computer language?
Newbie
 
Join Date: Nov 2009
Location: R.N.Reddy nagar,hyderabad
Posts: 5
#4: 2 Weeks Ago

re: what is the use of class?why we have to use?


i know c language,but c++ is bit confusing
Expert
 
Join Date: Mar 2008
Location: Naperville, Illinois U.S.
Posts: 828
#5: 2 Weeks Ago

re: what is the use of class?why we have to use?


I don't use C++, but as I understand it there are three ways to use C++ ...
  • ... as a better C. You take advantage of some C++ features, but still write procedural code.
  • ... as an object-oriented (OO) convert. You need a completely new way of thinking that involves classes, inheritance, polymorphism, templates, and all that jazz.
  • ... hybrid. Dip your toe into OO stuff but still write mostly procedural code.

Which path do you have in mind?
Newbie
 
Join Date: Nov 2009
Location: R.N.Reddy nagar,hyderabad
Posts: 5
#6: 2 Weeks Ago

re: what is the use of class?why we have to use?


object-oriented covert path
Reply