Conversion from a basic type to a class type may be
achieved using______________
Answer Posted / kaswan
well i have wrote a full article on how primitive types can
be converted to class type and class to class conversion
also.... if you want to check go ahead!
http://crazylearner.com/type-conversion-in-c/
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Which type does string inherit from?
How do you achieve runtime polymorphism?
What are the 3 principles of oop?
What is purpose of inheritance?
What is oops concept with example?
What is destructor example?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< what is difference between class template and template class? What is meant by multiple inheritance? What is a class and object? Why is abstraction used? write a code for this:trailer recordId contains a value
other than 99, then the file must error with the
reason ‘Invalid RECORD_ID’(User Defined Exception). class CTest
{
public:
void someMethod()
{
int nCount = 0;
cout << "This is some method --> " << nCount;
}
};
int main()
{
CTest *pctest;
pctest->someMethod();
return 0;
}
It will executes the someMethod() and displays the value
too. how is it possible with our creating memory for the
class . i think iam not creating object for the class.
Thanks in Advance...
Prakash What is class and object in oops? What are the features of oop?