WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE
SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.
Answer Posted / kunal prakash
object is the instance of the class.
class contains data and member functions.
Is This Answer Correct ? | 12 Yes | 4 No |
Post New Answer View All Answers
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is purpose of inheritance?
Why interface is used?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What are different oops concepts?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< How oops is better than procedural? What is the difference between encapsulation and polymorphism? What is polymorphism and why is it important? to find out the minimum of two integer number of two different
classes using friend function What is abstraction with example? What is the oops and benefits of oops programming? What is static modifier? What is solid in oops?