c++ provides classes...and classes do what we want but why
then strcut are used...if we say data hiding... it is also
provided by c++ in structs then why to prefer clasess
Answer / rasagna
resuability is the excellent concept in cpp. we can reuse
the functions many times.but in c we have not that type of
facility. classes gives redability and data security
(because of access specifier)to program. oop(object
oriented program) gives class as high in cpp.because of
inheritance,polymorphism,data independence.encapsulation.
At last what i want to say is
c + extra reatures = c++.
c + class = c++
Is This Answer Correct ? | 7 Yes | 0 No |
What are classes oop?
what is the difference between <stdio.h>and "stdio.h"?
Why we are use # in begning of programme of c++.
Why multiple inheritance is not allowed?
Can we have a private virtual method ?
what is difference between thread and programme.
What is ambiguity in inheritance?
What is oops and why we use oops?
Write a program in c++ to read two floating point numbers and find their sum and average.
Why do we use oops?
what is ltti
different types of castings