Posts

Unit-1 viva

Image
 >Blueprint of the car is class, the car is an object, (color, number of doors) are like data members, and (accelerator and brake) are like a member function. >Features of OOPS are object, class, data abstraction and encapsulation, information hiding, inheritance, and polymorphism. >Wrapping up of member functions and data members inside the class is called encapsulation. >Abtraction means showing only important details and hiding rest. >Information hiding is like a programmer will be able to use the members of the class without knowing what it does. >when objects of one class acquire the properties of objects of another class it is called inheritance. It provides reusability and expandability. > C++ polymorphism  means that a call to a member function will cause a different function to be executed depending on the type of object that invokes the function. > ------------------------------------------------------------------------------------------------...

Code with harry

Image
  >> jaise hum koi cheez google p search krte hain and google hume result deta hai to vo high level hota hai and jb hum google p andr dekhenge k vo result de kse rha hai kse kaam krra hai to vo low level khte hain. similarly locgical things that we can do with computer is called high level language and jb programming language see hum hardware and memory ko control kr paae to use lowlevel language khte hain. << this is the insertion operator used in cout. >> this is the extraction operator used in cin. Agr ek c naam ka global variable hai and ek c naam ka local variable hai to agr function k andr print krenge c ko to local print hoga lekin agr hume global c ki value print krni hai to hum scope resolution operator(::) use kr skte hain. Agr hum kisi function mein 34.4 pass krenge to vo use by default double smjhega isliye agr hume float bhjna hai to 34.4f or 34.4F krenge and agr long double bhejna hai to 34.4l or 34.4L. >>Typecasting >>Constants in C++ ...