|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (4 bit)
Join Date: Dec 2003
Posts: 10
|
Some Questions about C++
I have few question regarding C++, I can get most of the answers with books also but i want to get practical answers from users.So from practically if i understood the concept then i can be firm with it.
what way C++ is more better than C? What are the limitations that are overcomed in C++? What is Object-oriented nature of C++? How you memorise/visualise the concept of Arrays,Classes,Pointers? |
|
|
|
|
|
#2 |
|
Professional gadfly
|
C++ extends C in many ways, especially in terms of object-oriented design (there is a language called Objective C that is C with OO structures, though). The main limitation that C++ overcomes is the lack of object-oriented concepts in C. The definition of OO is pretty broad; it's probably good enough to know that in C++ you can use classes to implement OO design.
A pointer is a memory address. A class is a class...don't know how else to describe it, when you do OO programming it is second nature. An array is just a set of values. |
|
|
|
|
|
#3 |
|
Member (8 bit)
Join Date: Oct 2004
Location: Manila, Philippines
Posts: 221
|
Object oriented is the best feature of C++. A class contains methods and data identifiers. In Visual Basic Class is the Controls. The controls have events which are the methods and data identfiers in C++ which are the Properties in Visual Basic. To compare class. A good example of a class in real world is a cat.. Its methods are to meow, purr etc. and data identifiers are his no. of legs, color etc. In a class cat you may have different objects that you can create. Your objects for example are Garfield and "Felix the Cat".
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|