0% found this document useful (0 votes)
15 views1 page

Oops

Uploaded by

yash95632
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Oops

Uploaded by

yash95632
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

oops:

object oriented programming

-----------------------------
class
object
polymorphism
encapsulation
inheritance
data abstraction

--------------------
class and objects :class is collection of attributes and behaviour.
object is an instance of a class
ex:
animal---->dog,cat,lion.............
student--->ram,raju,sita...........
class
-------
1.class is collection of variables and methods
2.class is logical entity/blue print
3.will not occupy any space in the memory

syntax:

class employee
{
variables
methods
}

object
---------
1.object is an instance of a class/object will be created by using class
2.object is physical entity
3.occupy space in memory
4.we can create multiple objects for single class

syntax:

employee emp=new employee();

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy